207 Views
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 !
0 comments