This is a migrated thread and some comments may be shown as answers.

EventToCommand MVVM

2 Answers 339 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 17 Jul 2013, 08:06 PM
Hi,

I am starting with Telerik MVVM for WPF.

I would like to know how can I transform a Window Event (closing Event) in a DelegateCommand so that I can Drive in my ViewModel the event.

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 19 Jul 2013, 02:06 PM
Hello,

You can check this article, which explains how to use MVVM and EventToCommandBehavior. I'm also sending you a simple project, demonstrating how to use MVVMLight for this purpose.

Next week we'll introduce our 2013 Q2 SP1 and you will be able to use Telerik's EventToCommandBehavior:
<telerik:EventToCommandBehavior.EventBindings>
     <telerik:EventBinding EventName="Closing" Command="local:Commands.MyDelegateCommand" />
</telerik:EventToCommandBehavior.EventBindings>

Hopefully this helps!

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
mvbaffa
Top achievements
Rank 1
answered on 19 Jul 2013, 07:50 PM
Thanks I will check it out as soon as I can get to my development machine.
Tags
General Discussions
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
mvbaffa
Top achievements
Rank 1
Share this question
or