Hi,
I have a text box declared in xaml that uses databinding to a string property. How do I disable and then re-enable binding in code?
Thanks!
Hi,
I have a text box declared in xaml that uses databinding to a string property. How do I disable and then re-enable binding in code?
Thanks!
I'm not sure if it would work or not, but you could try calling FrameworkElement.SetBinding(), and pass null
for the second parameter.
You can use BindingOperations.ClearBinding to remove a binding, and BindingOperations.SetBinding to add it back in.