EventToCommand MVVM

3 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 17 Jul 2013 Link to this post

    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. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 19 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 19 Jul 2013 Link to this post

    Thanks I will check it out as soon as I can get to my development machine.
Back to Top