WPF Value Converter Trigger Reconvertion at custom event?
Is there any way to force 开发者_如何学Pythonwpf to run the value converter again on a specific event?
You can force WPF to update a binding by calling BindingExpression.UpdateTarget
(and, for certain bindings, BindingExpression.UpdateSource
). If the binding involves a converter, then the converter will run as part of that update.
To get the BindingExpression for a bound property, call BindingOperations.GetBindingExpression
.
精彩评论