18 references to GetVisualRoot
PresentationFramework (18)
System\Windows\Controls\Primitives\Selector.cs (1)
1329
UIElement root = KeyboardNavigation.
GetVisualRoot
(this) as UIElement;
System\Windows\Controls\RadioButton.cs (2)
145
Visual rootScope = KeyboardNavigation.
GetVisualRoot
(this);
164
if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.
GetVisualRoot
(rb) && rootScope != null)
System\Windows\Controls\ScrollViewer.cs (3)
1027
Visual baseRoot = KeyboardNavigation.
GetVisualRoot
(scp);
1028
Visual elementRoot = KeyboardNavigation.
GetVisualRoot
(element);
1051
elementRoot = KeyboardNavigation.
GetVisualRoot
(element);
System\Windows\Controls\TreeView.cs (1)
763
UIElement root = KeyboardNavigation.
GetVisualRoot
(this) as UIElement;
System\Windows\Input\KeyboardNavigation.cs (11)
106
if (
GetVisualRoot
(activeElement) ==
GetVisualRoot
(d))
129
if (
GetVisualRoot
(activeElement) ==
GetVisualRoot
(d))
168
return
GetVisualRoot
(fce.Parent);
926
Visual visualRoot =
GetVisualRoot
(focusTarget);
1042
Visual visualRoot =
GetVisualRoot
(currentElement);
1258
Visual rootVisual =
GetVisualRoot
(visual);
2383
Visual rootVisual =
GetVisualRoot
(uiElement);
2416
Visual rootVisual =
GetVisualRoot
(parent);
2443
Visual rootVisual =
GetVisualRoot
(uiElement3D);