C# Класс RIAServiceApplication.DataFieldExtensions

Provides extension methods for performing operations on a DataField.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateCopy ( this binding ) : Binding

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

Описание методов

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