在XAML有没有办法为默认的UpdateSourceTrigger到的PropertyChanged?没有办法、XAML、PropertyChanged、UpdateSourceTrigger

由网友(烟雨微茫)分享简介:在XAML(或code)有没有办法为默认的UpdateSourceTrigger到的PropertyChanged对于所有的绑定?In XAML (or code) is there a way to default the UpdateSourceTrigger to PropertyChanged for all...

在XAML(或code)有没有办法为默认的UpdateSourceTrigger到的PropertyChanged对于所有的绑定?

In XAML (or code) is there a way to default the UpdateSourceTrigger to PropertyChanged for all bindings?

的http://msdn.microsoft.com/en-us/library/system.windows.data.binding.updatesourcetrigger.aspx

的http://msdn.microsoft.com/en-us/library/system.windows.data.updatesourcetrigger.aspx

推荐答案

在WPF中,UpdateSourceTrigger已diffeent默认值,每个控制和他们是没有办法设置的东西,将控制所有的元素是如何设定自己的UpdateSourceTrigger的!您可以definetely创建可走通的网页和更改所有值的附加的行为?

In WPF, the UpdateSourceTrigger has diffeent default values for each control and their is no way of setting something that will control how all the elements set their UpdateSourceTrigger! You can definetely create a attached behavior that can go thru a page and change all the values?

<Window
     local:DefaultUpdateSourceTrigger="PropertyChanged">

</Window>

这可以步行可视化树,改变UpdateSourceTriggers!

This can then walk the visual tree and change the UpdateSourceTriggers!

阅读全文

相关推荐

最新文章