Loading Related Entity というメインページがあります。
private ICollectionView _notes;
public ICollectionView Notes
{
get { return _notes; }
set
{
_notes = value;
RaisePropertyChanged("Notes");
}
}
.
.
Notes = CollectionViewSource.GetDefaultView(db.Notes.Include(c => c.Category).ToList());
カテゴリを変更するサブページ カテゴリに移動します。
private ICollectionView _categorie;
public ICollectionView Categories
{
get { return _categorie; }
set
{
if (_categorie == value)
return;
ICollectionView oldvalue = _categorie;
_categorie = value;
RaisePropertyChanged("Categories",oldvalue,value,true);
}
}
Categories = CollectionViewSource.GetDefaultView(db.Categories.ToList());
ユーザーがサブページを閉じてメインページに戻っても、メインページは変更されません。
メッセージを送信したり、そのページのバインディングを更新するにはどうすればよいですか?