Class NotifyObject
Abstract base class for classes that implement INotifyPropertyChanged.
Implements
Namespace: Codaris.Common
Assembly: Codaris.Common.dll
Syntax
public abstract class NotifyObject : INotifyPropertyChanged
Methods
OnPropertyChanged(string)
Called when the property changed.
protected void OnPropertyChanged(string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name. |
See Also
SetProperty<T>(ref T, T, Action<T>, string)
Sets the property value and raises the changed event.
protected bool SetProperty<T>(ref T field, T value, Action<T> onChanged = null, string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| T | field | The field. |
| T | value | The value. |
| Action<T> | onChanged | The action to execute if the value changes. |
| string | name | The name of the property. |
Returns
| Type | Description |
|---|---|
| bool | True if property was changed. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
See Also
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Event Type
| PropertyChangedEventHandler |