Udostępnij za pośrednictwem


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.

Remarks

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

Applies to