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