C# Class Illusion.Bind

Hosts dependency properties for binding.
Afficher le fichier Open project: kasicass/kasicass

Méthodes publiques

Свойство Type Description
AtDesignTimeProperty System.Windows.DependencyProperty
ModelProperty System.Windows.DependencyProperty
ModelWithoutContextProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

GetModel() public static méthode

Gets the model to bind to.
public static GetModel ( DependencyObject dependencyObject ) : object
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
Résultat object

GetModelWithoutContext() public static méthode

Gets the model to bind to.
public static GetModelWithoutContext ( DependencyObject dependencyObject ) : object
dependencyObject System.Windows.DependencyObject The dependency object to bind to.
Résultat object

SetAtDesignTime() public static méthode

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.
Résultat void

SetModel() public static méthode

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.
Résultat void

SetModelWithoutContext() public static méthode

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.
Résultat void

Property Details

AtDesignTimeProperty public_oe static_oe property

Allows application of conventions at design-time.
public static DependencyProperty,System.Windows AtDesignTimeProperty
Résultat System.Windows.DependencyProperty

ModelProperty public_oe static_oe property

Allows binding on an existing view. Use this on root UserControls, Pages and Windows; not in a DataTemplate.
public static DependencyProperty,System.Windows ModelProperty
Résultat System.Windows.DependencyProperty

ModelWithoutContextProperty public_oe static_oe property

Allows binding on an existing view without setting the data context. Use this from within a DataTemplate.
public static DependencyProperty,System.Windows ModelWithoutContextProperty
Résultat System.Windows.DependencyProperty