C# 클래스 Open.Core.PropertyRef

A reference to a property on an object.
상속: PropertyDef
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 메소드들

메소드 설명
BindTo ( PropertyRef source, BindingMode mode ) : void

Binds this property (the target) to the given property (the source).

The property can only be bound to one source. Calling this method with another source disposes of the original binding.

ClearBinding ( ) : void

Removes all property bindings.

Dispose ( ) : void

Disposes of the object.

GetFromModel ( object obj, string propertyName ) : PropertyRef

Retrieves the PropertyRef from an IModel.

PropertyRef ( object instance, string name ) : System

Constructor.

비공개 메소드들

메소드 설명
BindTo ( PropertyRef source ) : bool
FireChanged ( ) : void
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

메소드 상세

BindTo() 공개 메소드

Binds this property (the target) to the given property (the source).
The property can only be bound to one source. Calling this method with another source disposes of the original binding.
public BindTo ( PropertyRef source, BindingMode mode ) : void
source PropertyRef The source property to bind to.
mode BindingMode The binding mode.
리턴 void

ClearBinding() 공개 메소드

Removes all property bindings.
public ClearBinding ( ) : void
리턴 void

Dispose() 공개 메소드

Disposes of the object.
public Dispose ( ) : void
리턴 void

GetFromModel() 공개 정적인 메소드

Retrieves the PropertyRef from an IModel.
public static GetFromModel ( object obj, string propertyName ) : PropertyRef
obj object The model object.
propertyName string The name of the property.
리턴 PropertyRef

PropertyRef() 공개 메소드

Constructor.
public PropertyRef ( object instance, string name ) : System
instance object The instance of the object that exposes the property.
name string The name of the property.
리턴 System