问题
I am looking at this,
Clear Binding in Silverlight (Remove Data Binding from SetBinding)
But to clear bindings you have to specify a dependency property.
Is there a way to generically find all the bindings on a DependencyObject and clear them?
Thanks.
回答1:
How about iterating over all the static dependency properties (using Reflection
) of that control's type and resetting bindings on them?
来源:https://stackoverflow.com/questions/4405288/removing-bindings-in-silverlight