4 references to FromDependencyObject
PresentationCore (4)
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
145s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource; 321(s_ActiveHwndSource != PresentationSource.FromDependencyObject(d));
System\Windows\Input\Mouse.cs (1)
469PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
214HwndSource inputSource = PresentationSource.FromDependencyObject(containingVisual) as HwndSource;