Removes the binding from a property if there is one.
Assembly: PresentationFramework (in PresentationFramework.dll)
If the given property is data-bound with a Binding, PriorityBinding, or MultiBinding, this method removes the corresponding binding expression and restores the value of the property to what it was before any local value was set through the binding.
If the given property is not data-bound, this method has no effect.
This example shows how to clear bindings from an object.
Clearing the binding removes the binding so that the value of the dependency property is changed to whatever it would have been without the binding. This value could be a default value, an inherited value, or a value from a data template binding.
To clear bindings from all possible properties on an object, use ClearAllBindings.