C# 클래스 Illusion.Bind

Hosts dependency properties for binding.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 프로퍼티들

프로퍼티 타입 설명
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