WPF 4.5 – Part 9 : binding to static properties

added by jmix90
9/29/2011 8:58:42 AM

293 Views

There is two different ways to make a property bindable: implementing INotifyPropertyChanged is the most known solution, the other one is to create a event named PropertyNameChanged. In WPF 4.0 there is no way to create a static property which can be used by a binding with property change notifications. In this post, part of a serie on the WPF 4.5 new features, we’ll see how it can now be done!


1 comments

dpeterson
9/29/2011 9:01:00 AM
I think I'm a little confused on which part is new in WPF 4.5, could you not bind to a static resource at all then? Or do you mean that the binding would not update on a static resource in WPF 4?