AbstractViewModel
class MainViewModel : AbstractViewModel
{
}private String _text;
public String Text
{
get { return _text; }
set
{
_text = value;
this.OnPropertyChanged( () => this.Text );
}
}Last updated
class MainViewModel : AbstractViewModel
{
}private String _text;
public String Text
{
get { return _text; }
set
{
_text = value;
this.OnPropertyChanged( () => this.Text );
}
}Last updated
public String Text
{
get { return this.GetPropertyValue( () => this.Text ); }
set { this.SetPropertyValue( () => this.Text, value ); }
}class MainViewModel : AbstractViewModel
{
public MainViewModel()
{
this.GetPropertyMetadata( () => this.Text )
.AddCascadeChangeNotifications( () => this.Sample );
}
public String Text
{
get { return this.GetPropertyValue( () => this.Text ); }
set { this.SetPropertyValue( () => this.Text, value ); }
}
public Int32 Sample
{
get { return this.GetPropertyValue( () => this.Sample ); }
set { this.SetPropertyValue( () => this.Sample, value ); }
}
}