I've a TextBlock that looks like so:
<TextBlock Text="{Binding Name}" />
This is inside a <Canvas>
with the DataContext set to MyClient which is in the ViewModel:
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();
}
Setting MyClient like the above does not raise the PropertyChanged event. As such the UI is never updated.