Completed
Last Updated: 21 Aug 2013 07:32 by ADMIN
ADMIN
Anton
Created on: 21 Aug 2013 07:32
Category: UI for WinForms
Type: Bug Report
0
FIX . CAB Enabling Kit - there is no way to show again smartpart that is already closed into RadDockWorkSpace.
CAB Enabling Kit - there is no way to show again smartpart that is already closed into RadDockWorkSpace.

Workaround:

         protected override void OnDockWindowClosing(DockWindowCancelEventArgs e)
        {
            if (!notifications[Suspend_Close] && e.NewWindow.Controls.Count > 0)
            {
                this.composer.SetActiveSmartPart(null);
                WorkspaceCancelEventArgs args = new WorkspaceCancelEventArgs(e.NewWindow.Controls[0]);
                OnSmartPartClosing(args);
                e.Cancel = args.Cancel;
                e.NewWindow.CloseAction = DockWindowCloseAction.Hide;
            }
            base.OnDockWindowClosing(e);
        }

        protected virtual void OnActivate(Control smartPart)
        {
            notifications[Suspend_Activated] = true;
            DockWindow dockWindow = GetSmartPart(smartPart);
            if (dockWindow != null && this.ActiveWindow != dockWindow)
            {
                dockWindow.Show();
                this.ActivateWindow(dockWindow);
            }

            notifications[Suspend_Activated] = false;
        }
0 comments