Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NotifyOnSourceUpdate是否可以在代码中设置属性Imagein WPF?我需要在后面的代码中执行此操作。我不能使用:MSDN
NotifyOnSourceUpdate
Image
WPF
如果Binding已经设置Xaml或代码您不能更改绑定属性,但您可以创建并分配一个新的绑定到您的Image
Binding
Xaml
Binding binding = new Binding("MyImageProperty") { NotifyOnSourceUpdated = true }; image.SetBinding(Image.SourceProperty, binding);