Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Close window from ViewModel

Not answered Close window from ViewModel

Feed from this thread
  • Posted on Oct 21, 2009 (permalink)

    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.

    Reply

  • Posted on Oct 21, 2009 (permalink)

    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.

    Reply

  • Miroslav Nedyalkov Miroslav Nedyalkov admin's avatar

    Posted on Oct 21, 2009 (permalink)

    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.

    Reply

  • Denis Vuyka avatar

    Posted on May 27, 2011 (permalink)

    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

    Reply

  • Miroslav Nedyalkov Miroslav Nedyalkov admin's avatar

    Posted on May 30, 2011 (permalink)

    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

    Reply

  • Hai avatar

    Posted on Dec 15, 2011 (permalink)

    You mentioned that "You could create an attached property that does the job." Can you please give a example of this?

    Reply

  • Miroslav Nedyalkov Miroslav Nedyalkov admin's avatar

    Posted on Dec 20, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Close window from ViewModel
Related resources for "Close window from ViewModel"

Silverlight Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]