WPF 4.5′s MarkupExtension : Invoke a method on the ViewModel (www.jonathanantoine.com)
submitted by
jmix90(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 !
|category: Windows Presentation Foundation
|Views: 6
tags:
WPF another
Everyones tags:
Your Tags: