Class ObservableObject
A base class for objects of which the properties must be observable.
Inherited Members
Namespace: Unity.AppUI.MVVM
Assembly: solution.dll
Syntax
public abstract class ObservableObject : INotifyPropertyChanged, INotifyPropertyChanging
Methods
Name | Description |
---|---|
OnPropertyChanged(PropertyChangedEventArgs) | Raises the PropertyChanged event. |
OnPropertyChanged(string?) | Raises the PropertyChanged event. |
OnPropertyChanging(PropertyChangingEventArgs) | Raises the PropertyChanging event. |
OnPropertyChanging(string?) | Raises the PropertyChanging event. |
SetProperty<T>(T, T, Action<T>, string?) | Sets the property and raises the PropertyChanging and PropertyChanged events. |
SetProperty<T>(T, T, EqualityComparer<T>, Action<T>, string?) | Sets the property and raises the PropertyChanging and PropertyChanged events. |
SetProperty<T>(ref T, T, EqualityComparer<T>, string?) | Sets the property and raises the PropertyChanging and PropertyChanged events. |
SetProperty<T>(ref T, T, string?) | Sets the property and raises the PropertyChanging and PropertyChanged events. |
SetProperty<T, TModel>(T, T, TModel, Action<TModel, T>, string?) | Sets the property and raises the PropertyChanging and PropertyChanged events. |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a property value has changed. |
PropertyChanging | Occurs when a property value is changing. |