C# Class Open.Core.PropertyRef

A reference to a property on an object.
Inheritance: PropertyDef
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
BindTo ( PropertyRef source ) : bool
FireChanged ( ) : void
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

BindTo() public method

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

ClearBinding() public method

Removes all property bindings.
public ClearBinding ( ) : void
return void

Dispose() public method

Disposes of the object.
public Dispose ( ) : void
return void

GetFromModel() public static method

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

PropertyRef() public method

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