Esempio n. 1
0
        void UpdateDragDetails()
        {
            _parentDocumentTabPanel           = this.FindLogicalAncestor <DocumentPaneTabPanel>();
            _parentDocumentTabPanelScreenArea = _parentDocumentTabPanel.GetScreenArea();
            _otherTabs = _parentDocumentTabPanel.Children.Cast <TabItem>().Where(ch =>
                                                                                 ch.Visibility != System.Windows.Visibility.Collapsed).ToList();
            Rect currentTabScreenArea = this.FindLogicalAncestor <TabItem>().GetScreenArea();

            _otherTabsScreenArea = _otherTabs.Select(ti =>
            {
                var screenArea = ti.GetScreenArea();
                return(new Rect(screenArea.Left, screenArea.Top, currentTabScreenArea.Width, screenArea.Height));
            }).ToList();
        }
 void UpdateDragDetails()
 {
     _parentDocumentTabPanel = this.FindLogicalAncestor<DocumentPaneTabPanel>();
     _parentDocumentTabPanelScreenArea = _parentDocumentTabPanel.GetScreenArea();
     _otherTabs = _parentDocumentTabPanel.Children.Cast<TabItem>().Where(ch =>
         ch.Visibility != System.Windows.Visibility.Collapsed).ToList();
     Rect currentTabScreenArea = this.FindLogicalAncestor<TabItem>().GetScreenArea();
     _otherTabsScreenArea = _otherTabs.Select(ti => 
         {
             var screenArea = ti.GetScreenArea();
             return new Rect(screenArea.Left, screenArea.Top, currentTabScreenArea.Width, screenArea.Height);
         }).ToList();
 }