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

RadWindow.Prompt hidden behind WebBrowser

4 Answers 128 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rappen
Top achievements
Rank 1
Rappen asked on 02 Mar 2010, 08:51 PM
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

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 03 Mar 2010, 11:42 AM
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.
0
Rappen
Top achievements
Rank 1
answered on 03 Mar 2010, 03:07 PM
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
0
Miroslav Nedyalkov
Telerik team
answered on 05 Mar 2010, 09:55 AM
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.
0
Rappen
Top achievements
Rank 1
answered on 05 Mar 2010, 11:12 AM
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
Tags
Window
Asked by
Rappen
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Rappen
Top achievements
Rank 1
Share this question
or