WPF MVVM 응용 프로그램을 만들고 DataTable에 WPFToolkit DataGrid 바인딩을 설정하여 변경 내용을 알리는 DataTable 속성을 구현하는 방법을 알고 싶습니다. 현재 내 코드는 아래와 같습니다.InotifyPropertyChanged를 사용하여 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.
}
이 문제에 대한 다른 해결책이 있습니까?