Relayed |
The RelayedEventAttribute type exposes the following members.
Name | Description | |
---|---|---|
RelayedEventAttribute(Type) | Initializes a new instance of the RelayedEventAttribute class. | |
RelayedEventAttribute(Type, String) | Initializes a new instance of the RelayedEventAttribute class. |
Name | Description | |
---|---|---|
SourceName | Gets the name of the source property, or null if the name is the same as the target property. | |
SourceType | Gets the type of the source for the events. |
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions) |
class X : ObservableObject { Y _governingObject; public X(Y governingObject) { _governingObject = governingObject; RelayEventsOf(_governingObject); } [RelayedEvent(typeof(Y))] string Value { get { return _governingObject.Value } } void ChageSomething() { _governingObject.Value = "new Value"; } }