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