Controlling RadWindow via MVVM

2 posts, 0 answers
  1. Alex Galie
    Alex Galie avatar
    22 posts
    Member since:
    Dec 2009

    Posted 07 Sep 2011 Link to this post

    Hi,

    I need in my project to open a popup window which lets me modify some properties of an object (name etc.). I'm using PRISM and would like to stick to the MVVM pattern.

    How can I use RadWindow to update/rollback the object properties when I hit Save/Cancel, then close it (from the view model) ?

    I found a solution for a ChildWindow control here, but it doesn't work with RadWindow.

    Thanks,
    Alex
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Sep 2011 Link to this post

    Hi Alex,

     You could use the approach you found, but you should notice that the RadWindow control doesn't close automatically when the DialogResult property is set. You need to do one more thing with the RadWindow control when the attached property is changed - to close it.

    Hope this helps.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
Back to Top