9 references to FromVisual
PresentationCore (2)
System\Windows\Media\Visual.cs (2)
4741PresentationSource inputSource = PresentationSource.FromVisual(this); 4770PresentationSource inputSource = PresentationSource.FromVisual(this);
PresentationFramework (2)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
177if (PresentationSource.FromVisual(annotatedElement) == null)
System\Windows\Documents\TextStore.cs (1)
3318win32Window = PresentationSource.FromVisual(RenderScope) as IWin32Window;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2928hwndSource = PresentationSource.FromVisual(targetVisual) as HwndSource;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
293CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).CompositionTarget;
WindowsFormsIntegration (3)
System\Windows\Integration\ApplicationInterop.cs (2)
420return (PresentationSource.FromVisual(x) != null) ? (PresentationSource.FromVisual(x)).RootVisual : null;
System\Windows\Integration\WindowsFormsHost.cs (1)
1008PresentationSource presentationSource = PresentationSource.FromVisual(this._host);