AttachedVisualFactoryBase.GetAttachedVisualAsync(UIElement) Method

Definition

Creates a Windows.UI.Composition.Visual to attach to the target element.

public abstract System.Threading.Tasks.ValueTask<Windows.UI.Composition.Visual> GetAttachedVisualAsync (Windows.UI.Xaml.UIElement element);
abstract member GetAttachedVisualAsync : Windows.UI.Xaml.UIElement -> System.Threading.Tasks.ValueTask<Windows.UI.Composition.Visual>
Public MustOverride Function GetAttachedVisualAsync (element As UIElement) As ValueTask(Of Visual)

Parameters

element
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement the visual will be attached to.

Returns

ValueTask<Windows.UI.Composition.Visual>

A Windows.UI.Composition.Visual instance that the caller will attach to the target element.

Applies to