Class ViewModelBase
A basic viewmodel that implements the PropertyChanged event.
Inheritance
System.Object
ViewModelBase
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.ViewModels
Assembly: RuriLib.dll
Syntax
public abstract class ViewModelBase : INotifyPropertyChanged
Methods
| Improve this Doc View SourceOnPropertyChanged(String)
Raises a PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property. If null, the name of the calling property will be used. |
Events
| Improve this Doc View SourcePropertyChanged
The event that lets the GUI know a property was changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged