AttachedVisualFactoryBase.GetAttachedVisualAsync(UIElement) 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.
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.