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