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)
2105if (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)
2943if (source != null && source.CompositionTarget != null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1533if (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)
719return CompositionTarget; 1126HwndTarget 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)
3050CompositionTarget ct = hwndSource.CompositionTarget; 3119CompositionTarget ct = _window.CompositionTarget; 3138CompositionTarget ct = hwndSource.CompositionTarget; 3150CompositionTarget ct = _window.CompositionTarget; 3371HwndTarget hwndTarget = (HwndTarget)newWindow.CompositionTarget;
System\Windows\Documents\ImmComposition.cs (2)
603compositionTarget = _source.CompositionTarget; 736compositionTarget = _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)
2938CompositionTarget ct = hwndSource.CompositionTarget;