C# Class Illusion.Bind

Hosts dependency properties for binding.
Exibir arquivo Open project: kasicass/kasicass

Public Properties

Property Type Description
AtDesignTimeProperty System.Windows.DependencyProperty
ModelProperty System.Windows.DependencyProperty
ModelWithoutContextProperty System.Windows.DependencyProperty

Public Methods

Method 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

Method 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 method

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

GetModelWithoutContext() public static method

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

SetAtDesignTime() public static method

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.
return void

SetModel() public static method

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.
return void

SetModelWithoutContext() public static method

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.
return void

Property Details

AtDesignTimeProperty public_oe static_oe property

Allows application of conventions at design-time.
public static DependencyProperty,System.Windows AtDesignTimeProperty
return 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
return 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
return System.Windows.DependencyProperty