Click or drag to resize
ObservableObject Class
Brings possibilities to send PropertyChanged. It implements the INotifyPropertyChanged and is an ideal base class for ViewModels objects.
Inheritance Hierarchy
SystemObject
  DW.SharpToolsObservableObject

Namespace: DW.SharpTools
Assembly: DW.SharpTools (in DW.SharpTools.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C#
public abstract class ObservableObject : INotifyPropertyChanged

The ObservableObject type exposes the following members.

Constructors
  NameDescription
Protected methodObservableObject
Initializes a new instance of the ObservableObject class
Top
Methods
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Examples
C#
public class MainViewModel : ObservableObject
{
    public char Value
    {
        get { return _value; }
        set
        {
            _value = value;
            NotifyPropertyChanged(() => Value);
        }
    }
    private char _value;
}
See Also