2016-06-30 3 views
0

ここでは単純な状況があります。しかし、私がviewmodel.Test = trueを使用してもNotifyPropertyChangedイベントは発生しません。それを行う方法がいくつかありますか?何らかの方法でイベントを手動で発生させることはできますか? OnPropertyChange(nameof(Test))のようなもの?そして、設定の変更を追跡する方法もありますか?PostSharp NotifyProperty手動でイベントを発生

//From viewmodel with aspect NotifyPropertyChanged 
private readonly IConfig config; 
public bool Test 
{ 
    get { return config.Test; } 
    internal set 
    { 
     config.Test = value; 
    } 
} 



public class Config : IConfig 
{ 
    public bool Test { get; set; } 
} 

答えて

関連する問題