WPF 4.5′s MarkupExtension : Invoke a method on the ViewModel (www.jonathanantoine.com)

submitted by jmix90jmix90(570) 8 months, 4 days ago

WPF 4.5′s MarkupExtension : Invoke a method on the ViewModel / DataContext when an event is raised. We have seen in a previous post that WPF 4.5 enable the use of custom markup extensions to provide event handlers. In this post we’ll see that we can execute a method on the DataContext of the control when an event is raised using this new ability of the MarkupExtension. With some tiny modifications you can run it on Silverlight too !

add a comment |category: |Views: 6

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:

No comments so far

information Login or create an account to comment on this story