ElementCompositionPreview.GetContainerVisual(UIElement) Method

Definition

Retrieves the Windows.UI.Composition.Visual object that backs a XAML container in the XAML composition tree.

public:
 static Platform::Object ^ GetContainerVisual(UIElement ^ element);
 static IInspectable GetContainerVisual(UIElement const& element);
public static object GetContainerVisual(UIElement element);
function getContainerVisual(element)
Public Shared Function GetContainerVisual (element As UIElement) As Object

Parameters

element
UIElement

The element for which to retrieve the container Visual.

Returns

Object

Platform::Object

IInspectable

The Windows.UI.Composition.Visual object that backs the XAML element container.

Applies to