Tuesday, March 10, 2009

Remove Binding in WPF code-behind

We can remove binding from a dependency property of a dependency object from code behind using,

BindingOperations.ClearBinding(sliderRange, Slider.ValueProperty);
In this snippet, we are removing binding from Value Property of Slider sliderRange.

0 comments:

Post a Comment