ここで私はmvvmに取り組んでいます。テキストボックスに変更が発生した場合にdatgridのuodateに通知したいのですが、そのためのコードは何ですか?
public void Save()
{if (IsNew)
_accountCategoryDataSource.Add(_accountCategory);
データベースにデータを追加するための上記のコード
表示するためにデータグリッドにデータをロードするための以下のコード
private void LoadAllAccounts()
{
_allAccounts =
(from account in _accountDataSource.GetAll() as List<Account>
select new AccountViewModel(account, _accountDataSource)).ToList();
Accounts = new ObservableCollection<AccountViewModel>(_allAccounts);
if (Accounts.Count > 0)
SelectedAccount = Accounts[0];
}`
しかし、データグリッドで更新を表示するためのコードを作成することはできませんか?