How to Display The Focused Window to be the FrontWindow?

2 posts, 0 answers
  1. Vinnarasi
    Vinnarasi avatar
    14 posts
    Member since:
    Aug 2013

    Posted 29 Oct 2013 Link to this post

    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

  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 30 Oct 2013 Link to this post

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