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

Close window from ViewModel

6 Answers 136 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 2
Alexey asked on 21 Oct 2009, 11:22 AM
Hi,

Have you provided any way to close window from ViewModel?

With standard ChildWIndow I've binded DialogResult property to close window.

Changing of RadWindow DialogResult doesn't cause window to close itself.

Thanks,
Alexey Zakharov.

6 Answers, 1 is accepted

Sort by
0
Alexey
Top achievements
Rank 2
answered on 21 Oct 2009, 11:28 AM
I've found you button attached proeprty TelerikNavigation:RadWindow.ResponseButton="Accept". May be button marked with this attached property should close radwindow?

Currently I don't understand why it is needed.
0
Miroslav Nedyalkov
Telerik team
answered on 21 Oct 2009, 11:32 AM
Hello Alexey,

The RadWindow control dosn't provide such property that is able to close it. You could create an attached property that does the job. You could also use the WindowCommands.Close command (it causes the RadWindow control to close).

We will log your request we may add this feature, but for now it is not supported.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Denis Vuyka
Top achievements
Rank 1
answered on 27 May 2011, 12:14 PM
What is the reason not to mimick the standard Silverlight ChildWIndow behavior in this case where dialog is closed upon DialogResult value is assigned. Your current implementaion is not intuitive for Silverlight developers and provides additional overhead during migration to Telerik suite.
Regards,
Denis
0
Miroslav Nedyalkov
Telerik team
answered on 30 May 2011, 09:16 AM
Hi Denis,

 This feature is in our TODO list, but it is not planned for the 2011 Q2 release. You could track its progress in PITS. The item ID is 6281.

Best wishes,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hai
Top achievements
Rank 1
answered on 15 Dec 2011, 11:02 PM
You mentioned that "You could create an attached property that does the job." Can you please give a example of this?
0
Miroslav Nedyalkov
Telerik team
answered on 20 Dec 2011, 11:06 AM
Hi Hai,

We don't have such an example, but you could refer to this article, which explains the suggested approach. The article is for WPF, but this approach will work in Silverlight as well.

Hope this helps.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Window
Asked by
Alexey
Top achievements
Rank 2
Answers by
Alexey
Top achievements
Rank 2
Miroslav Nedyalkov
Telerik team
Denis Vuyka
Top achievements
Rank 1
Hai
Top achievements
Rank 1
Share this question
or