C# Класс Illusion.Bind

Hosts dependency properties for binding.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AtDesignTimeProperty System.Windows.DependencyProperty
ModelProperty System.Windows.DependencyProperty
ModelWithoutContextProperty System.Windows.DependencyProperty

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

Метод Описание
GetModel ( DependencyObject dependencyObject ) : object

Gets the model to bind to.

GetModelWithoutContext ( DependencyObject dependencyObject ) : object

Gets the model to bind to.

SetAtDesignTime ( DependencyObject dependencyObject, bool value ) : void

Sets whether or not do bind conventions at design-time.

SetModel ( DependencyObject dependencyObject, object value ) : void

Sets the model to bind to.

SetModelWithoutContext ( DependencyObject dependencyObject, object value ) : void

Sets the model to bind to.

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

Метод Описание
AtDesignTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
DataContextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
GetAtDesignTime ( DependencyObject dependencyObject ) : bool

Gets whether or not conventions are being applied at design-time.

ModelChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ModelWithoutContextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

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

GetModel() публичный статический Метод

Gets the model to bind to.
public static GetModel ( DependencyObject dependencyObject ) : object
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
Результат object

GetModelWithoutContext() публичный статический Метод

Gets the model to bind to.
public static GetModelWithoutContext ( DependencyObject dependencyObject ) : object
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
Результат object

SetAtDesignTime() публичный статический Метод

Sets whether or not do bind conventions at design-time.
public static SetAtDesignTime ( DependencyObject dependencyObject, bool value ) : void
dependencyObject System.Windows.DependencyObject The ui to apply conventions to.
value bool Whether or not to apply conventions.
Результат void

SetModel() публичный статический Метод

Sets the model to bind to.
public static SetModel ( DependencyObject dependencyObject, object value ) : void
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
value object The model.
Результат void

SetModelWithoutContext() публичный статический Метод

Sets the model to bind to.
public static SetModelWithoutContext ( DependencyObject dependencyObject, object value ) : void
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
value object The model.
Результат void

Описание свойств

AtDesignTimeProperty публичное статическое свойство

Allows application of conventions at design-time.
public static DependencyProperty,System.Windows AtDesignTimeProperty
Результат System.Windows.DependencyProperty

ModelProperty публичное статическое свойство

Allows binding on an existing view. Use this on root UserControls, Pages and Windows; not in a DataTemplate.
public static DependencyProperty,System.Windows ModelProperty
Результат System.Windows.DependencyProperty

ModelWithoutContextProperty публичное статическое свойство

Allows binding on an existing view without setting the data context. Use this from within a DataTemplate.
public static DependencyProperty,System.Windows ModelWithoutContextProperty
Результат System.Windows.DependencyProperty