ElementCompositionPreview.GetElementVisual(UIElement) ElementCompositionPreview.GetElementVisual(UIElement) ElementCompositionPreview.GetElementVisual(UIElement) ElementCompositionPreview.GetElementVisual(UIElement) Method

Definition

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

public : static Visual GetElementVisual(UIElement element)
static Visual GetElementVisual(UIElement element) const;
public static Visual GetElementVisual(UIElement element)
Public Shared Function GetElementVisual(element As UIElement) As Visual

Parameters

element
UIElement UIElement

The element to retrieve the Visual for.

Returns

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

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)