54 references to TreeHelper
System.Windows.Controls.Ribbon (54)
Microsoft\Windows\Controls\KeyTipService.cs (5)
395return TreeHelper.FindVisualAncestor(element, 398return ((KeyTipService.GetIsKeyTipScope(d) == true) || (TreeHelper.GetParent(d) == null)); 403return TreeHelper.FindAncestor(element, delegate(DependencyObject d) 405return ((KeyTipService.GetIsKeyTipScope(d) == true) || (TreeHelper.GetParent(d) == null)); 1058return TreeHelper.FindRoot(element);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
218return TreeHelper.FindTemplatedAncestor<RibbonContextualTabGroupItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
620TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (2)
428TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout); 450TreeHelper.InvalidateMeasureForVisualAncestorPath(this, RibbonHelper.IsISupportStarLayout);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
320return TreeHelper.FindTemplatedAncestor<ItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
72_ribbon = TreeHelper.FindTemplatedAncestor<Ribbon>(this);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
1855TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject)) 1997RibbonGroup ribbonGroup = TreeHelper.FindVisualAncestor<RibbonGroup>(Keyboard.FocusedElement as DependencyObject); 2071RibbonControl ribbonControl = TreeHelper.FindVisualAncestor<RibbonControl>(Keyboard.FocusedElement as DependencyObject); 2103!TreeHelper.IsVisualAncestorOf(targetControl, Keyboard.FocusedElement as DependencyObject)) 2244!TreeHelper.IsVisualAncestorOf(this, focusedElement) && 2247!TreeHelper.IsVisualAncestorOf(_itemsPresenterPopup.Child, focusedElement)) 2489obj = TreeHelper.GetParent(obj);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (6)
451TreeHelper.IsVisualAncestorOf(footerPaneHost, element)) 492TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 522TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 529!TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, nextFocus)) 543TreeHelper.IsVisualAncestorOf(subMenuScrollViewer, element)) 551menuItem = TreeHelper.FindVisualAncestor<RibbonMenuItem>(element);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1198(TreeHelper.FindVisualAncestor<RibbonGalleryCategory>(focusedElement) != null))
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
83Popup ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup; 155current = TreeHelper.GetParent(current);
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (5)
616DependencyObject ancestor = TreeHelper.FindVisualAncestor(d, 623TreeHelper.InvalidateMeasureForVisualAncestorPath(d, delegate(DependencyObject element) 666RibbonGroupItemsPanel ribbonGroupItemsPanel = TreeHelper.FindVisualAncestor<RibbonGroupItemsPanel>(d); 669RibbonGroup ribbonGroup = TreeHelper.FindVisualAncestor<RibbonGroup>(ribbonGroupItemsPanel); 708RibbonControlGroup controlGroup = TreeHelper.FindVisualAncestor<RibbonControlGroup>(d);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
600TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGallery>(category.ItemsHostSite, false); 2691ScrollViewer predictedFocusAncestor = TreeHelper.FindVisualAncestor<ScrollViewer>(predictedFocus); 2706RibbonMenuItem menuItem = TreeHelper.FindAncestor(this, delegate(DependencyObject d) { return (d is RibbonMenuItem); }) as RibbonMenuItem;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (5)
998RibbonGroupsPanel panel = TreeHelper.FindVisualAncestor<RibbonGroupsPanel>(this); 1125TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(_itemsPresenter); 1231TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(d); 1271TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonGroup>(_templateContentControl); 1682TreeHelper.IsVisualAncestorOf(_itemsPresenter, placementTarget))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (7)
150DependencyObject rootVisual = TreeHelper.FindVisualRoot(element); 1337TreeHelper.IsVisualAncestorOf(element, Mouse.Captured as DependencyObject))); 1346return TreeHelper.FindAncestor(element, delegate(DependencyObject d) { return d == ancestor; }) != null; 1378ISupportStarLayout starLayoutManager = TreeHelper.FindVisualAncestor(starLayoutProvider, 2830RibbonGroup ribbonGroup = TreeHelper.FindAncestor(fe, delegate(DependencyObject element) { return (element is RibbonGroup); }) as RibbonGroup; 2833ribbonGroup = TreeHelper.FindLogicalAncestor<RibbonGroup>(fe); 2889TreeHelper.InvalidateMeasureForVisualAncestorPath<Popup>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (3)
855(IsFocused || (focusedElement != null && TreeHelper.IsVisualAncestorOf(this, focusedElement)))) 1285_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1517!TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
785(!popupChild.IsKeyboardFocusWithin || TreeHelper.IsVisualAncestorOf(popupChild, originalSource))) 1335_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
281TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonTwoLineText>(_textBlock2); 314TreeHelper.InvalidateMeasureForVisualAncestorPath<RibbonTwoLineText>(_textBlock2);