Like most WPF events, SourceUpdated is a Routed Event . Any event handler for this event placed on this element will also be called when the child element raises this event.
If you have the following code:
<StackPanel Binding.SourceUpdated="OnBindingSourceUpdated"> <TextBlock Text="{Binding Path=A, NotifyOnSourceUpdated=True}" /> <TextBlock Text="{Binding Path=B, NotifyOnSourceUpdated=True}" /> </StackPanel>
The OnBindingSourceUpdated handler will handle binding source changes for both text fields. Place the attached event handler in the element where the data context was originally set, and you will receive notifications for every change to the source.
source share