Jaa


ElementCompositionPreview.SetElementChildVisual(UIElement, Visual) Method

Definition

Sets a custom Windows.UI.Composition.Visual as the last child of the element’s visual tree.

public:
 static void SetElementChildVisual(UIElement ^ element, Visual ^ visual);
 static void SetElementChildVisual(UIElement const& element, Visual const& visual);
public static void SetElementChildVisual(UIElement element, Visual visual);
function setElementChildVisual(element, visual)
Public Shared Sub SetElementChildVisual (element As UIElement, visual As Visual)

Parameters

element
UIElement

The element to add the child Visual to.

visual
Visual

The Visual to add to the element's visual tree.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

The Visual is added as the last child, therefore on top of the rest of the element in z-order.

Applies to