开发者

Global Binding Style

I'm wondering how can I set default UpdateSourceTrigger to PropertyChanged for all TextBox'es on window? Is there any simpler way than using Find&开发者_如何学运维amp;Replace?


UpdateSourceTrigger is used with Binding that is made on some property of the control, so the way you can achieve this is declare your own class derived from Binding, set UpdateSourceTrigger in that class and use this new class in markup instead of Binding class.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜