36 references to CompositionTarget
PresentationCore (18)
System\Windows\Input\InputElement.cs (2)
275if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 276sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\MouseDevice.cs (1)
2070if (source != null && source.CompositionTarget != null && !source.IsHandleNull)
System\Windows\Input\Stylus\Common\StylusLogic.cs (6)
404if (hwndSource?.CompositionTarget != null) 407if (!_transformToDeviceMatrices.ContainsKey(hwndSource.CompositionTarget.CurrentDpiScale)) 409_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice; 410Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 413toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
59Matrix matrix = (_inputSource as HwndSource)?.CompositionTarget?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2920if (source != null && source.CompositionTarget != null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1527if (penContextsOfPoints?.InputSource?.CompositionTarget != null)
System\Windows\InterOp\HwndMouseInputProvider.cs (2)
866if(_source != null && !_source.IsDisposed && _source.CompositionTarget != null) 867dispatcherHashCode = _source.CompositionTarget.Dispatcher.GetHashCode();
System\Windows\InterOp\HwndSource.cs (2)
713return CompositionTarget; 1120HwndTarget hwndTarget = CompositionTarget; // checks for disposed
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
151(_source.CompositionTarget != null ? _source.CompositionTarget.Dispatcher.GetHashCode() : 0),
PresentationFramework (17)
System\Windows\Appearance\WindowBackdropManager.cs (4)
99if (windowSource.CompositionTarget != null) 102windowSource.CompositionTarget.BackgroundColor = Colors.Transparent; 114if (windowSource?.Handle != IntPtr.Zero && windowSource.CompositionTarget != null) 116windowSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor;
System\Windows\Controls\Primitives\Popup.cs (5)
3038CompositionTarget ct = hwndSource.CompositionTarget; 3107CompositionTarget ct = _window.CompositionTarget; 3126CompositionTarget ct = hwndSource.CompositionTarget; 3138CompositionTarget ct = _window.CompositionTarget; 3361HwndTarget hwndTarget = (HwndTarget)newWindow.CompositionTarget;
System\Windows\Documents\ImmComposition.cs (2)
618compositionTarget = _source.CompositionTarget; 751compositionTarget = _source.CompositionTarget;
System\Windows\Shell\WindowChromeWorker.cs (3)
953_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor; 963_hwndSource.CompositionTarget.BackgroundColor = Colors.Transparent; 1149_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor;
System\Windows\Window.cs (3)
7534HwndTarget compositionTarget = _sourceWindow.CompositionTarget; 7606pt = _sourceWindow.CompositionTarget.TransformFromDevice.Transform(pt); 7629pt = _sourceWindow.CompositionTarget.TransformFromDevice.Transform(pt);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2928CompositionTarget ct = hwndSource.CompositionTarget;