HwndSource.CompositionTarget Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the visual manager for the hosted window.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public HwndTarget CompositionTarget {
	[UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)]

Property Value

Type: System.Windows.Interop.HwndTarget

The visual manager.

Override GetCompositionTargetCore in order to override the value that CompositionTarget returns.

.NET Framework
Available since 3.0
Return to top