Ejemplo n.º 1
0
 void explorerDocPane_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SelectedContent")
     {
         if (explorerDocPane.SelectedContent is LayoutDocument && explorerDocPane.SelectedContent != _selectedLayoutDoc)
         {
             _selectedLayoutDoc = (LayoutDocument)explorerDocPane.SelectedContent;
             if (_selectedLayoutDoc != null)
             {
                 IExplorerTabPage selectedPage = _tabPages.ExplorerTabPageByLayoutDocument(_selectedLayoutDoc);
                 if (selectedPage != null && selectedPage != _activeTabPage)
                 {
                     _activeTabPage = selectedPage;
                     if (_selected.Count == 1)
                     {
                         this.Cursor = System.Windows.Input.Cursors.Wait;
                         _activeTabPage.ExplorerObject = _selected[0];
                         _activeTabPage.OnShow();
                         this.Cursor = System.Windows.Input.Cursors.Arrow;
                     }
                 }
             }
         }
     }
 }