HwndSource.CompositionTarget Property

 
System_CAPS_noteNote

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 {
	[SecurityCriticalAttribute]
	[UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)]
	get;
}

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
Show: