次のような TextBlock があります。
<TextBlock Text="{Binding Name}" />
これは<Canvas>
、ViewModel にある MyClient に設定された DataContext の内部にあります。
public Client MyClient { get; private set; } // This is a RIA Entity, hence supports INotifyPropertyChanged
public ViewModel() {
MyClient = new Client();
LoadOperation<Client> loadClient = RiaContext.Load<Client>(RiaContext.GetClientsQuery());
loadClient.Completed += new EventHandler(loadClient_Completed);
}
void loadClient_Completed(object sender, EventArgs e) {
MyClient = DB.Clients.Single();
}
上記のように MyClient を設定しても、PropertyChanged イベントは発生しません。そのため、UI は更新されません。