54 references to TreeHelper
System.Windows.Controls.Ribbon (54)
Microsoft\Windows\Controls\KeyTipService.cs (5)
397return TreeHelper.FindVisualAncestor(element, 400return ((KeyTipService.GetIsKeyTipScope(d) == true) || (TreeHelper.GetParent(d) == null)); 405return TreeHelper.FindAncestor(element, delegate(DependencyObject d) 407return ((KeyTipService.GetIsKeyTipScope(d) == true) || (TreeHelper.GetParent(d) == null)); 1060return TreeHelper.FindRoot(element);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
223return TreeHelper.FindTemplatedAncestor<RibbonContextualTabGroupItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
625TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (2)
430TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout); 452TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
324return TreeHelper.FindTemplatedAncestor<ItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
76_ribbon = TreeHelper.FindTemplatedAncestor<Ribbon>(this);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
1858TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject)) 2000RibbonGroup ribbonGroup = TreeHelper.FindVisualAncestor<RibbonGroup>(Keyboard.FocusedElement as DependencyObject); 2074RibbonControl ribbonControl = TreeHelper.FindVisualAncestor<RibbonControl>(Keyboard.FocusedElement as DependencyObject); 2106!TreeHelper.IsVisualAncestorOf(targetControl, Keyboard.FocusedElement as DependencyObject)) 2247!TreeHelper.IsVisualAncestorOf(this, focusedElement) && 2250!TreeHelper.IsVisualAncestorOf(_itemsPresenterPopup.Child, focusedElement)) 2492obj = TreeHelper.GetParent(obj);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (6)
453TreeHelper.IsVisualAncestorOf(footerPaneHost, element)) 494TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 524TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 531!TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, nextFocus)) 545TreeHelper.IsVisualAncestorOf(subMenuScrollViewer, element)) 553menuItem = TreeHelper.FindVisualAncestor<RibbonMenuItem>(element);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1200(TreeHelper.FindVisualAncestor<RibbonGalleryCategory>(focusedElement) != null))
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
85Popup ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup; 157current = TreeHelper.GetParent(current);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (5)
623DependencyObject ancestor = TreeHelper.FindVisualAncestor(d, 630TreeHelper.InvalidateMeasureForVisualAncestorPath(d, delegate(DependencyObject element) 673RibbonGroupItemsPanel ribbonGroupItemsPanel = TreeHelper.FindVisualAncestor<RibbonGroupItemsPanel>(d); 676RibbonGroup ribbonGroup = TreeHelper.FindVisualAncestor<RibbonGroup>(ribbonGroupItemsPanel); 715RibbonControlGroup controlGroup = TreeHelper.FindVisualAncestor<RibbonControlGroup>(d);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
602TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGallery>(category.ItemsHostSite, false); 2693ScrollViewer predictedFocusAncestor = TreeHelper.FindVisualAncestor<ScrollViewer>(predictedFocus); 2708RibbonMenuItem menuItem = TreeHelper.FindAncestor(this, delegate(DependencyObject d) { return (d is RibbonMenuItem); }) as RibbonMenuItem;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (5)
1001RibbonGroupsPanel panel = TreeHelper.FindVisualAncestor<RibbonGroupsPanel>(this); 1128TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(_itemsPresenter); 1234TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(d); 1274TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(_templateContentControl); 1685TreeHelper.IsVisualAncestorOf(_itemsPresenter, placementTarget))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (7)
155DependencyObject rootVisual = TreeHelper.FindVisualRoot(element); 1342TreeHelper.IsVisualAncestorOf(element, Mouse.Captured as DependencyObject))); 1351return TreeHelper.FindAncestor(element, delegate(DependencyObject d) { return d == ancestor; }) != null; 1383ISupportStarLayout starLayoutManager = TreeHelper.FindVisualAncestor(starLayoutProvider, 2835RibbonGroup ribbonGroup = TreeHelper.FindAncestor(fe, delegate(DependencyObject element) { return (element is RibbonGroup); }) as RibbonGroup; 2838ribbonGroup = TreeHelper.FindLogicalAncestor<RibbonGroup>(fe); 2894TreeHelper.InvalidateMeasureForVisualAncestorPath<Popup>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (3)
858(IsFocused || (focusedElement != null && TreeHelper.IsVisualAncestorOf(this, focusedElement)))) 1288_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1520!TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
788(!popupChild.IsKeyboardFocusWithin || TreeHelper.IsVisualAncestorOf(popupChild, originalSource))) 1338_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
284TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonTwoLineText>(_textBlock2); 317TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonTwoLineText>(_textBlock2);