Question regarding floating

3 posts, 0 answers
  1. Guido
    Guido avatar
    2 posts
    Member since:
    Mar 2016

    Posted 16 Mar 2016 Link to this post


    I have built an application with the Telerik WPF UI which is used to host other application using the Win32 SetParent function. Basically I can use it to host a number of other applications, similar as to how Chrome or Edge works. It works fine: I can host any application inside a number of radpanes. To achieve this, I have a WindowsFormsHost with a Panel on it. I use the Hwnd of the Panel to reparent the window of another process.

    However, when I start undocking a pane by dragging it, the reparented window suddenly disappears and the pane is empty. I tried to handle this by listening to the PaneStateChange and PreviewPin events but that is not enough. I need to know that the pane will become undocked so I can park the parented window somewhere else while the pane is made to float. Is there a formal way to achieve this?


  2. Nasko
    Nasko avatar
    727 posts

    Posted 17 Mar 2016 Link to this post

    Hello Guido,

    We suggest you to check our sample project that demonstrates how to use RadDocking controls with WinForms:

    The sample demonstrates how you could preserve the content of the pane when it becomes floating or is pinned/unpinned. In the sample we use System.Windows.Forms.User Control instead of WindowsFormsHost.

    Please, give it a try and let us know if it helped you to resolve your issue.

    We hope this will help you.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Guido
    Guido avatar
    2 posts
    Member since:
    Mar 2016

    Posted 17 Mar 2016 in reply to Nasko Link to this post

    Thanks, this seems to solve my issue!
Back to Top