Table of Contents

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

propName string

The 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

storage T

The backing field.

value T

The new value.

propName string

The property name. When called from a property setter it is filled in automatically.

Returns

bool

true if the value changed; otherwise false.

Type Parameters

T

The property type.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler