C# Class TrainTracker.DataFieldExtensions

Provides extension methods for performing operations on a DataField.
Show file Open project: vega670/TrainTracker

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

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