C# Класс Open.Core.PropertyRef

A reference to a property on an object.
Наследование: PropertyDef
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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