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 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
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.