PipelineBuilder.AttachAsync(UIElement, UIElement) Method

Definition

Builds the current pipeline and creates a Windows.UI.Composition.SpriteVisual that is applied to the input Windows.UI.Xaml.UIElement

public System.Threading.Tasks.Task<Windows.UI.Composition.SpriteVisual> AttachAsync (Windows.UI.Xaml.UIElement target, Windows.UI.Xaml.UIElement reference = default);
member this.AttachAsync : Windows.UI.Xaml.UIElement * Windows.UI.Xaml.UIElement -> System.Threading.Tasks.Task<Windows.UI.Composition.SpriteVisual>
Public Function AttachAsync (target As UIElement, Optional reference As UIElement = Nothing) As Task(Of SpriteVisual)

Parameters

target
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement to apply the brush to

reference
Windows.UI.Xaml.UIElement

An optional Windows.UI.Xaml.UIElement to use to bind the size of the created brush

Returns

Task<Windows.UI.Composition.SpriteVisual>

A Task<TResult> that returns the final Windows.UI.Composition.SpriteVisual instance to use

Applies to