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

Controlling RadWindow via MVVM

1 Answer 128 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex Galie
Top achievements
Rank 2
Alex Galie asked on 07 Sep 2011, 10:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 08 Sep 2011, 01:21 PM
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 >>

Tags
Window
Asked by
Alex Galie
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or