Class ViewModelBase
Base class for view models that provides an implementation of INotifyPropertyChanged.
Inheritance
ViewModelBase
Implements
Inherited Members
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public abstract class ViewModelBase : INotifyPropertyChanged
Properties
| Edit this page View SourceDebuggingTag
Optional debugging tag for view model instances.
Declaration
public string DebuggingTag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasPropertyChangedSubscriber
Gets a value indicating whether there is a subscriber to the PropertyChanged event.
Declaration
public bool HasPropertyChangedSubscriber { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceRaisePropertyChanged(string)
Raises the PropertyChanged event for the specified property name.
Declaration
public void RaisePropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The name of the property that changed. |
Events
| Edit this page View SourcePropertyChanged
Event raised when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |