36 references to CompositionTarget
PresentationCore (18)
System\Windows\Input\InputElement.cs (2)
279if(sourceFrom != null && sourceFrom.CriticalHandle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 280sourceTo != null && sourceTo.CriticalHandle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\MouseDevice.cs (1)
2079if (source != null && source.CompositionTarget != null && !source.IsHandleNull)
System\Windows\Input\Stylus\Common\StylusLogic.cs (6)
414if (hwndSource?.CompositionTarget != null) 417if (!_transformToDeviceMatrices.ContainsKey(hwndSource.CompositionTarget.CurrentDpiScale)) 419_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice; 420Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 423toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
71Matrix matrix = (_inputSource as HwndSource)?.CompositionTarget?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2929if (source != null && source.CompositionTarget != null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1530if (penContextsOfPoints?.InputSource?.CompositionTarget != null)
System\Windows\InterOp\HwndMouseInputProvider.cs (2)
870if(_source != null && !_source.IsDisposed && _source.CompositionTarget != null) 871dispatcherHashCode = _source.CompositionTarget.Dispatcher.GetHashCode();
System\Windows\InterOp\HwndSource.cs (2)
725return CompositionTarget; 1143HwndTarget hwndTarget = CompositionTarget; // checks for disposed
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
158(_source.CompositionTarget != null ? _source.CompositionTarget.Dispatcher.GetHashCode() : 0),
PresentationFramework (17)
System\Windows\Appearance\WindowBackdropManager.cs (4)
100if (windowSource.CompositionTarget != null) 103windowSource.CompositionTarget.BackgroundColor = Colors.Transparent; 115if (windowSource?.Handle != IntPtr.Zero && windowSource.CompositionTarget != null) 117windowSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor;
System\Windows\Controls\Primitives\Popup.cs (5)
3045CompositionTarget ct = hwndSource.CompositionTarget; 3114CompositionTarget ct = _window.CompositionTarget; 3133CompositionTarget ct = hwndSource.CompositionTarget; 3145CompositionTarget ct = _window.CompositionTarget; 3368HwndTarget hwndTarget = (HwndTarget)newWindow.CompositionTarget;
System\Windows\Documents\ImmComposition.cs (2)
626compositionTarget = _source.CompositionTarget; 759compositionTarget = _source.CompositionTarget;
System\Windows\Shell\WindowChromeWorker.cs (3)
958_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor; 968_hwndSource.CompositionTarget.BackgroundColor = Colors.Transparent; 1154_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor;
System\Windows\Window.cs (3)
7547HwndTarget compositionTarget = _sourceWindow.CompositionTarget; 7619pt = _sourceWindow.CompositionTarget.TransformFromDevice.Transform(pt); 7642pt = _sourceWindow.CompositionTarget.TransformFromDevice.Transform(pt);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2933CompositionTarget ct = hwndSource.CompositionTarget;