Can anyone suggest a way to create in Silverlight a workaround for UpdateTarget() method that exists in WPF? Removing the existing binding that exists on the DP and setting the value manually is not an option for me. Thanks
Try something like this. Replace ImageBlobMember with your XAML control's 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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With