开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜