WPF 4.5 – Part 9 : binding to static properties(www.jonathanantoine.com)

submitted by jmix90jmix90(570) 7 months, 29 days ago

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 comment |category: |Views: 42

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 7 months, 28 days ago 0

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?

Reply

information Login or create an account to comment on this story