C# Class Open.Core.PropertyRef

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

Méthodes publiques

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

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

Method Details

BindTo() public méthode

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

ClearBinding() public méthode

Removes all property bindings.
public ClearBinding ( ) : void
Résultat void

Dispose() public méthode

Disposes of the object.
public Dispose ( ) : void
Résultat void

GetFromModel() public static méthode

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

PropertyRef() public méthode

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