A base class for tracking property changes and notifying subscribers when a property value is modified.
More...
|
void | SetProperty< TProperty > (ref TProperty store, TProperty value, Action onChanged=null, Func< TProperty, bool > onChanging=null, [CallerMemberName] string propertyName="") |
| Sets the value of a property and notifies subscribers if the value has changed.
|
|
void | SetTrackedProperty< TProperty > (ref TProperty store, TProperty value, Action< string > onChanged=null, [CallerMemberName] string propertyName="") |
| Sets the value of a property that implements the INotifyPropertyChanged interface and notifies subscribers if the value has changed.
|
|
virtual void | OnChangeProperty ([CallerMemberName] string propertyName="") |
| Notifies subscribers when a property value changes.
|
|
A base class for tracking property changes and notifying subscribers when a property value is modified.
◆ OnChangeProperty()
virtual void ATAS.Indicators.Filters.TrackedPropertyBase.OnChangeProperty |
( |
[CallerMemberName] string |
propertyName = "" | ) |
|
|
protectedvirtual |
Notifies subscribers when a property value changes.
- Parameters
-
propertyName | The name of the property whose value has changed. |
◆ SetProperty< TProperty >()
void ATAS.Indicators.Filters.TrackedPropertyBase.SetProperty< TProperty > |
( |
ref TProperty |
store, |
|
|
TProperty |
value, |
|
|
Action |
onChanged = null , |
|
|
Func< TProperty, bool > |
onChanging = null , |
|
|
[CallerMemberName] string |
propertyName = "" |
|
) |
| |
|
protected |
Sets the value of a property and notifies subscribers if the value has changed.
- Template Parameters
-
TProperty | The type of the property. |
- Parameters
-
store | Reference to the backing field of the property. |
value | The new value to set. |
onChanged | Optional action to be executed after the property value has changed. |
onChanging | Optional function to be executed before the property value changes to determine if the value can be changed. |
propertyName | The name of the property. |
◆ SetTrackedProperty< TProperty >()
void ATAS.Indicators.Filters.TrackedPropertyBase.SetTrackedProperty< TProperty > |
( |
ref TProperty |
store, |
|
|
TProperty |
value, |
|
|
Action< string > |
onChanged = null , |
|
|
[CallerMemberName] string |
propertyName = "" |
|
) |
| |
|
protected |
Sets the value of a property that implements the INotifyPropertyChanged interface and notifies subscribers if the value has changed.
- Template Parameters
-
TProperty | The type of the property that implements the INotifyPropertyChanged interface. |
- Parameters
-
store | Reference to the backing field of the property. |
value | The new value to set. |
onChanged | Optional action to be executed after the property value has changed. |
propertyName | The name of the property. |
- Type Constraints
-
TProperty | : | class | |
TProperty | : | INotifyPropertyChanged | |
◆ PropertyChanged
PropertyChangedEventHandler ATAS.Indicators.Filters.TrackedPropertyBase.PropertyChanged |
The documentation for this class was generated from the following file: