Esempio n. 1
0
 void ContentDockManager_OnPaneDragEnded(object sender, PaneDragEndedEventArgs e)
 {
     if (e.Panes != null)
     {
         var tabGroupPane = e.Panes[0].Parent as TabGroupPane;
         var splitPane    = tabGroupPane?.Parent as SplitPane;
         if (splitPane?.Parent is PaneToolWindow paneToolWindow && string.IsNullOrWhiteSpace(paneToolWindow.Title))
         {
             paneToolWindow.Title = Title;
         }
     }
 }
Esempio n. 2
0
        public void DockManager_OnPaneDragEnded_(object sender, PaneDragEndedEventArgs e)
        {
            var contentPane = e.Panes[0];

            _contentPane = contentPane;
            UpdatePane(contentPane);
            var windows = Application.Current.Windows;

            foreach (var window in windows)
            {
                var actuallWindow = window as Window;
                if (actuallWindow != null)
                {
                    var windowType = actuallWindow.GetType();
                    if (windowType.FullName == "Infragistics.Windows.Controls.ToolWindowHostWindow")
                    {
                        actuallWindow.Activated -= ActuallWindowOnActivated;
                        actuallWindow.Activated += ActuallWindowOnActivated;
                    }
                }
            }
        }
 public void DockManager_OnPaneDragEnded_(object sender, PaneDragEndedEventArgs e)
 {
     var contentPane = e.Panes[0];
     _contentPane = contentPane;
     UpdatePane(contentPane);
     var windows = Application.Current.Windows;
     foreach (var window in windows)
     {
         var actuallWindow = window as Window;
         if (actuallWindow != null)
         {
             var windowType = actuallWindow.GetType();
             if (windowType.FullName == "Infragistics.Windows.Controls.ToolWindowHostWindow")
             {
                actuallWindow.Activated -= ActuallWindowOnActivated;
                actuallWindow.Activated += ActuallWindowOnActivated;
             }
         }
     }
 }