wpf - Update all bindings in UserControl at once -


I need to update all the bindings on my userrent when its visibility changes in visible Many all my binding user controls I am trying to update the target of that bond:

  Binding Operation Getbanging ExpressBusiness (this, UserControl.DataContextProperty) .UpdateTarget ();  

But I'm getting the GetBindingExpression (..) method as null and I'm wondering if I Using the wrong

In addition, there is no other good way to refresh all the bindings on the control (which use data constants as the source).

itemprop = "text">

OK, you could just DataContext :

DataContext; DataContext = null; datacontext = datacontext;

FYI, its value to the property (i.e. DataContext = DataContext ) will not work.


Comments