9 references to FromVisual
PresentationCore (2)
System\Windows\Media\Visual.cs (2)
4725PresentationSource inputSource = PresentationSource.FromVisual(this); 4754PresentationSource inputSource = PresentationSource.FromVisual(this);
PresentationFramework (2)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
173if (PresentationSource.FromVisual(annotatedElement) == null)
System\Windows\Documents\TextStore.cs (1)
3307win32Window = PresentationSource.FromVisual(RenderScope) as IWin32Window;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2923hwndSource = PresentationSource.FromVisual(targetVisual) as HwndSource;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
288CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).CompositionTarget;
WindowsFormsIntegration (3)
System\Windows\Integration\ApplicationInterop.cs (2)
418return (PresentationSource.FromVisual(x) != null) ? (PresentationSource.FromVisual(x)).RootVisual : null;
System\Windows\Integration\WindowsFormsHost.cs (1)
1006PresentationSource presentationSource = PresentationSource.FromVisual(this._host);