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
20
PaneHidden event only fires once
posted

We are experiencing a problem with the paneHidden event.  It will fire the first time the X(close button) is clicked but will not fire again  after the pane is shown again.  We are using Version 2007 release 2.  The pane is shown again using the Show method after getting it from the workspace and using the paneFromControl method.   Do you have any recommendations? This is a pressing issue for us.

public static void ToggleDockableControlPaneVisible(WorkItem workspaceWorkItem, Control view)
        {
            UltraDockWorkspace workspace = workspaceWorkItem.Workspaces[WorkspaceNames.DockMainWorkSpace] as UltraDockWorkspace;

            if (workspace != null)
            {
                DockableControlPane pane = workspace.PaneFromControl(view);
                if (pane.IsVisible)
                    pane.Close();
                else
                    pane.Show();
            }
  }

 void DockWorkspace_PaneHidden(object sender, PaneHiddenEventArgs e)

        {
            if (ActivePaneClosed != null)
            {
                if (e.Pane.Closed)
                    ActivePaneClosed(this, new ActivePaneClosedEventArgs(e.Pane.TextTab));
            }
        }