示例#1
0
 private void RegionTarget_ActivePaneChanged(object sender, Telerik.Windows.Controls.Docking.ActivePangeChangedEventArgs e)
 {
     if (e.NewPane?.PaneGroup != null)
     {
         e.NewPane.PaneGroup.DropDownDisplayMode = TabControlDropDownDisplayMode.Visible;
     }
 }
        private void OnDockingActivePaneChanged(object sender, Telerik.Windows.Controls.Docking.ActivePangeChangedEventArgs e)
        {
            try
            {
                this.updatingActiveViewsInDockingActivePaneChanged = true;

                if (e.OriginalSource == sender)
                {
                    if (e.OldPane != null)
                    {
                        if (this.Region.Views.Contains(e.OldPane) && this.Region.ActiveViews.Contains(e.OldPane))
                        {
                            this.Region.Deactivate(e.OldPane);
                        }
                    }

                    if (e.NewPane != null)
                    {
                        if (this.Region.Views.Contains(e.NewPane) && !this.Region.ActiveViews.Contains(e.NewPane))
                        {
                            this.Region.Activate(e.NewPane);
                        }
                    }
                }
            }
            finally
            {
                this.updatingActiveViewsInDockingActivePaneChanged = false;
            }
        }