Class BindableBase
- Namespace
- EasySoftware.MvvmMini
- Assembly
- EasySoftware.MvvmMini.dll
Base class for objects that notify bindings when their properties change.
public abstract class BindableBase : INotifyPropertyChanged
- Inheritance
-
BindableBase
- Implements
- Derived
- Inherited Members
Methods
RaisePropertyChanged(string)
Raises PropertyChanged for the given property.
public void RaisePropertyChanged(string propName = null)
Parameters
propNamestringThe property name. When called from a property setter it is filled in automatically.
SetProperty<T>(ref T, T, string)
Sets a backing field and raises PropertyChanged if the value changed.
protected bool SetProperty<T>(ref T storage, T value, string propName = null)
Parameters
storageTThe backing field.
valueTThe new value.
propNamestringThe property name. When called from a property setter it is filled in automatically.
Returns
Type Parameters
TThe property type.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged