Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3455
Active Dockable window
posted
Hi,
How to know the active dockable window using c#
Regards,
Pgr2008

 

Parents
  • 44743
    posted

    You can check the UltraDockManager.ActivePane property. That will return a DockableControlPane. I don't think there is a public way to get directly to the DockableWindow which contains the pane, but you can get it's Control property and then get that control's Parent property:

    DockableControlPane pane = this.ultraDockManager1.ActivePane;

    if ( pane != null )
    {
     DockableWindow activeDockableWindow = pane.Control.Parent as DockableWindow;

     if ( activeDockableWindow != null )
     {
      // ...
     }
    }

     

     

Reply Children