1 override of RootVisual
PresentationCore (1)
System\Windows\InterOp\HwndSource.cs (1)
553
public override Visual
RootVisual
1 write to RootVisual
PresentationCore (1)
MS\Internal\Automation\EventMap.cs (1)
278
source.
RootVisual
= source.RootVisual;
40 references to RootVisual
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
191
_rootDependencyObject = _presentationSource.
RootVisual
;
PresentationCore (24)
MS\Internal\Automation\EventMap.cs (1)
278
source.RootVisual = source.
RootVisual
;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (3)
53
point = TryApplyVisualTransform(point, presentationSource.
RootVisual
, true, throwOnError, out success);
73
point = ApplyVisualTransform(point, presentationSource.
RootVisual
, false);
226
GeneralTransform transformElementToRoot = element.TransformToAncestor(presentationSource.
RootVisual
);
System\Windows\Input\KeyboardDevice.cs (2)
142
oFocus = _activeSource.
RootVisual
;
641
moveFocusTo = _activeSource.
RootVisual
;
System\Windows\Input\ManipulationLogic.cs (1)
584
_root = presentationSource.
RootVisual
as UIElement;
System\Windows\Input\MouseDevice.cs (5)
588
if (relativePresentationSource == null || relativePresentationSource.
RootVisual
== null)
606
ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.
RootVisual
, (DependencyObject)relativeTo);
1476
Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.
RootVisual
, (DependencyObject)_mouseOver, out mouseOverAvailable);
1658
ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.
RootVisual
, (DependencyObject)mouseOver);
2133
UIElement root = inputSource.
RootVisual
as UIElement;
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
128
Visual rootVisual = (relativePresentationSource != null) ? relativePresentationSource.
RootVisual
: null;
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
495
DpiScale dpi = VisualTreeHelper.GetDpi(_stylusDevice.CriticalActiveSource.
RootVisual
);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
740
if (relativePresentationSource == null || relativePresentationSource.
RootVisual
== null)
749
Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.
RootVisual
, (DependencyObject)relativeTo);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
601
Point ptClient = mouseDevice.GetPosition(source.
RootVisual
as IInputElement);
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (2)
82
if (ActiveSource?.
RootVisual
!= null)
84
pixelsPerInch = VisualTreeHelper.GetDpi(ActiveSource.
RootVisual
).PixelsPerInchX;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
1904
Point ptClient = mouseDevice.GetPosition(source.
RootVisual
as IInputElement);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
1188
if (relativePresentationSource == null || relativePresentationSource.
RootVisual
== null)
1195
Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.
RootVisual
, (DependencyObject)relativeTo);
System\Windows\Media\Visual.cs (2)
4749
GeneralTransform gUp = this.TransformToAncestor(inputSource.
RootVisual
);
4782
GeneralTransform gDown = inputSource.
RootVisual
.TransformToDescendant(this);
PresentationFramework (11)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
105
transform = relativeTo.TransformToAncestor(source.
RootVisual
);
System\Windows\Controls\PopupControlService.cs (2)
74
UIElement rootAsUIElement = source != null ? source.
RootVisual
as UIElement : null;
886
GeneralTransform transformToRoot = visualParent.TransformToAncestor(presentationSource.
RootVisual
);
System\Windows\Controls\TextAdaptor.cs (2)
406
GeneralTransform transform = visual.TransformToAncestor(presentationSource.
RootVisual
);
447
GeneralTransform transform = visual.TransformToAncestor(presentationSource.
RootVisual
);
System\Windows\Controls\WebBrowser.cs (1)
749
if (pSource != null && pSource.
RootVisual
is PopupRoot)
System\windows\Documents\CaretElement.cs (1)
1072
GeneralTransform transform = _caretElement.TransformToAncestor(source.
RootVisual
);
System\Windows\Documents\TextStore.cs (1)
2856
Visual root = source.
RootVisual
;
System\Windows\Input\KeyboardNavigation.cs (2)
162
return source.
RootVisual
;
3407
Visual root = source.
RootVisual
;
System\Windows\SystemResources.cs (1)
1257
FrameworkElement fe = source.
RootVisual
as FrameworkElement;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1186
e.NewSource.
RootVisual
is Window)
1188
rib._window = (Window)e.NewSource.
RootVisual
;
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (1)
420
return (PresentationSource.FromVisual(x) != null) ? (PresentationSource.FromVisual(x)).
RootVisual
: null;
System\Windows\Integration\WindowsFormsHost.cs (1)
1013
Window presentationSourceWindow = presentationSource.
RootVisual
as Window;