Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ElementCompositionPreview.GetElementVisual(UIElement) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 static Visual ^ GetElementVisual(UIElement ^ element);
 static Visual GetElementVisual(UIElement const& element);
public static Visual GetElementVisual(UIElement element);
function getElementVisual(element)
Public Shared Function GetElementVisual (element As UIElement) As Visual

Parameters

element
UIElement

The element to retrieve the Visual for.

Returns

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

Applies to


Feedback

Was this page helpful?