C# Class RIAServiceApplication.DataFieldExtensions

Provides extension methods for performing operations on a DataField.
Datei anzeigen Open project: KuduApps/RIAServicesApp

Public Methods

Method Description
ReplaceTextBox ( this field, FrameworkElement newControl, DependencyProperty dataBindingProperty ) : void

Replaces a DataField's TextBox control with another control and updates the bindings.

ReplaceTextBox ( this field, FrameworkElement newControl, DependencyProperty dataBindingProperty, Action bindingSetupFunction ) : void

Replaces a DataField's TextBox control with another control and updates the bindings.

Private Methods

Method Description
CreateCopy ( this binding ) : Binding

Creates a new Binding object by copying all properties from another Binding object.

Method Details

ReplaceTextBox() public static method

Replaces a DataField's TextBox control with another control and updates the bindings.
public static ReplaceTextBox ( this field, FrameworkElement newControl, DependencyProperty dataBindingProperty ) : void
field this The whose will be replaced.
newControl System.Windows.FrameworkElement The new control you're going to set as .
dataBindingProperty System.Windows.DependencyProperty The control's property that will be used for data binding.
return void

ReplaceTextBox() public static method

Replaces a DataField's TextBox control with another control and updates the bindings.
public static ReplaceTextBox ( this field, FrameworkElement newControl, DependencyProperty dataBindingProperty, Action bindingSetupFunction ) : void
field this The whose will be replaced.
newControl System.Windows.FrameworkElement The new control you're going to set as .
dataBindingProperty System.Windows.DependencyProperty The control's property that will be used for data binding.
bindingSetupFunction Action /// An optional you can use to change parameters on the newly generated binding before it is applied to ///
return void