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

How to Display The Focused Window to be the FrontWindow?

1 Answer 54 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Vinnarasi
Top achievements
Rank 1
Vinnarasi asked on 29 Oct 2013, 08:10 AM
Hi,
     
     I am using RadDocking in my Application. I want to display the MainWindow(not the Floating Child Window) to appear Front when I focused or clicked. Any way to do this???


Thanks in Advance,
M.Vinnarasi

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 30 Oct 2013, 09:03 AM
Hello Vinnarasi,

The floating Pane is placed inside a ToolWindow which Owner is the Docking and that is why it is always on the top of the MainWindow. So in order to achieve the desired behavior we should remove its Owner. The easiest way to achieve that is to create a custom ToolWindow which inherits from ToolWindow and override its GetWindowOwner method to always return null. After that through a custom GeneratedItemsFactory you can pass the custom ToolWindow which doesn't have Owner. For your convenience we have prepared and attached a sample project which demonstrates the exact approach.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Docking
Asked by
Vinnarasi
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or