WPF MVVM アプリケーションを作成し、WPFToolkit DataGrid バインディングを DataTable に設定したので、DataTable プロパティを実装して変更を通知する方法を知りたいです。現在、私のコードは以下のようなものです。
public DataTable Test
{
get { return this.testTable; }
set
{
...
...
base.OnPropertyChanged("Test");
}
}
public void X()
{
this.Test.Add(...); // I suppose this line will call to getter first (this.Test = get Test) and then it will call add letter, this mean that setter scope will never fire.
base.OnPropertyChanged("Test"); // my solution is here :) but I hope it has better ways.
}
この問題の別の解決策はありますか?