Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to be sure all data bindings are current?

$
0
0
Hello. I have a class that exposes many dependency properties which are being bound to a variety of UI elements. I have several instances of these objects at runtime, and under certain conditions one instance will replace another as the data context for the bound UI controls parent via "ParentControl.DataContext = SomeObject;". My question is how do I know when all the controls within "ParentControl" have been updated by this switch in data context and all the dependency property changed callbacks have completed as a result of the change? In other words how do I know when the dependency properties of "SomeObject" and the associated bound values are all current after the data context switch? Thank you in advance.

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>