RadWindow.Prompt hidden behind WebBrowser

5 posts, 0 answers
  1. Rappen
    Rappen avatar
    11 posts
    Member since:
    Feb 2010

    Posted 02 Mar 2010 Link to this post

    Hi

    I have a WPF Browser App with a few components, including a WebBrowser.
    When clicking a button, i open a prompt window - and it is hidden behind the WebBrowser window.
    I have tried "Send to back" and forward on the WebBrowser - nothing solves my problem.
    The WebBrowser is directed using its Navigate-method.
    The prompt is opened using the RadWindow.Prompt method.

    See attached screen shots.

    Any clues?

    Regards
    Jonas
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 03 Mar 2010 Link to this post

    Hello Jonas,

     The WebBrowser and WindowsHost controls in WPF are shown on top of everything else in your window. As the RadWindow control in XBAP is using an Adorner to show itself it is actually in the window and because of that it is under the WebBrowser Control. Unfortunately no proper work-around comes to my mind.

    All the best,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rappen
    Rappen avatar
    11 posts
    Member since:
    Feb 2010

    Posted 03 Mar 2010 Link to this post

    Hi

    How about defining an owner/parent for the RadWIndow control?
    In that way the window may not be opened at appcenter, but I may direct it to a location where there is not a WebBrowser?

    This seems a bit too hard to actually be true though... It cannot be a unusual thing to prompt the user for info in this simple manner? Do you know of a way to do this with standard WPF classes, like the MessageBox.Show method?

    Best Regards
    Jonas
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 05 Mar 2010 Link to this post

    Hi Rappen,

     You could use the LeftOffset property to move the window away from the Center of the application. You could also not use WindowStartupLocation with value CenterOwner or CenterScreen - this way the window will not center.

    If you choose to not use the RadWindow control you may use the WPF class MessageBox and its Show method instead. You might refer to the following example for more information: http://msdn.microsoft.com/en-us/library/aa358525.aspx.

    Hope this helps!

    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.
  6. Rappen
    Rappen avatar
    11 posts
    Member since:
    Feb 2010

    Posted 05 Mar 2010 Link to this post

    Hi Miroslav

    The MSDN sample only shows MessageBox, I needed the Prompt functionality... :-/

    My solution now is to set Visibility.Hidden on the WebBrowser component before calling RadWindow.Prompt, and then Visibility.Visible first thing in the event handler of the RadWindow.
    Works reasonably decent, for now...

    Thanks for your tips!

    /Jonas
Back to Top
UI for WPF is Visual Studio 2017 Ready