ShowDialog and XBAP

2 posts, 0 answers
  1. Michael
    Michael avatar
    34 posts
    Member since:
    Oct 2009

    Posted 29 Jan 2010 Link to this post

    When I call ShowDialog() on a RadWindow in a standard WPF application then ShowDialog returns when the user closes the RadWindow. When I'm running my application as XBAP in the browser then ShowDialog returns immediately.

    Is this an intentional behaviour? If so, what do I have to do to display a modal dialog in a XBAP environment?

    Regards,
    Michael
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Feb 2010 Link to this post

    Hi Michael,

     This is expected as the ShowDialog method in XBAP is asynchronous - this means that it returns immediately and shows a modal window (it works like in Silverlight). In WPF desktop application this method is synchronous - this behavior comes from the standard Window control.

    The window that is shown when you call the ShowDialog method is still modal, no matter it is shown asynchronously.

    Hope this information helps. 

    Regards,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top