C# 클래스 TrainTracker.DataFieldExtensions

Provides extension methods for performing operations on a DataField.
파일 보기 프로젝트 열기: vega670/TrainTracker

공개 메소드들

메소드 설명
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

메소드 상세

ReplaceTextBox() 공개 정적인 메소드

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.
리턴 void

ReplaceTextBox() 공개 정적인 메소드

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 ///
리턴 void