Silverlight UpdateTarget () Tool for BindingExpression

Can anyone suggest a way to create a workaround in Silverlight for the UpdateTarget () method that exists in WPF? Removing an existing binding that exists on DP and setting the value manually is not an option for me. Thanks

+5
source share
1 answer

Try something like this. Replace ImageBlobMember with your XAML control x: Name / Name and replace Image.SourceProperty with the appropriate value, depending on the type of control.

BindingExpression bindExp =
 ImageBlobMember.GetBindingExpression(System.Windows.Controls.Image.SourceProperty);
Binding bind = bindExp.ParentBinding;
ImageBlobMember.SetBinding(System.Windows.Controls.Image.SourceProperty, bind);
+7
source

All Articles