Note

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

Access to this page requires authorization. You can try .

ElementCompositionPreview.SetElementChildVisual(UIElement, Visual) 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.

Sets a custom 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


Feedback

Was this page helpful?