Edit

Share via


PipelineVisualFactoryBase.GetAttachedVisualAsync(UIElement) Method

Definition

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

public override System.Threading.Tasks.ValueTask<Windows.UI.Composition.Visual> GetAttachedVisualAsync (Windows.UI.Xaml.UIElement element);
override this.GetAttachedVisualAsync : Windows.UI.Xaml.UIElement -> System.Threading.Tasks.ValueTask<Windows.UI.Composition.Visual>
Public Overrides 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