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();
        }
Beispiel #2
0
        private void UpdateDragDetails()
        {
            this._parentDocumentTabPanel           = this.FindLogicalAncestor <DocumentPaneTabPanel>();
            this._parentDocumentTabPanelScreenArea = this._parentDocumentTabPanel.GetScreenArea();
            this._otherTabs = (
                from TabItem ch in this._parentDocumentTabPanel.Children
                where ch.Visibility != System.Windows.Visibility.Collapsed
                select ch).ToList <TabItem>();
            Rect rect = this.FindLogicalAncestor <TabItem>().GetScreenArea();

            this._otherTabsScreenArea = this._otherTabs.Select <TabItem, Rect>((TabItem ti) => {
                Rect screenArea = ti.GetScreenArea();
                return(new Rect(screenArea.Left, screenArea.Top, rect.Width, screenArea.Height));
            }).ToList <Rect>();
        }
 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();
 }