PresentationSource::CompositionTarget Property

 

Gets the visual target for the visuals being presented in the source.

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

public:
property CompositionTarget^ CompositionTarget {
	[SecurityCriticalAttribute]
	[UIPermissionAttribute(SecurityAction::LinkDemand, Window = UIPermissionWindow::AllWindows)]
	CompositionTarget^ get();
}

Property Value

Type: System.Windows.Media::CompositionTarget^

A visual target (instance of a CompositionTarget derived class).

The return of this property relies on an implementation of GetCompositionTargetCore.

Notes to Inheritors:

Derived classes can choose to shadow this property to offer a type-specific value.

.NET Framework
Available since 3.0
Return to top
Show: