AnimatedGlobalNavigationButtonVisualSource.TryCreateAnimatedVisual 方法

定义

尝试为 AnimatedIcon 创建 对象的实例AnimatedGlobalNavigationButtonVisualSource

本文档适用于Windows 应用 SDK中的 WinUI 2 for UWP (for WinUI,请参阅) Windows 应用 SDK命名空间

public:
 virtual IAnimatedVisual ^ TryCreateAnimatedVisual(Compositor ^ compositor, [Out] Platform::Object ^ & diagnostics) = TryCreateAnimatedVisual;
IAnimatedVisual TryCreateAnimatedVisual(Compositor const& compositor, [Out] IInspectable const& & diagnostics);
public IAnimatedVisual TryCreateAnimatedVisual(Compositor compositor, out object diagnostics);
Public Function TryCreateAnimatedVisual (compositor As Compositor, ByRef diagnostics As Object) As IAnimatedVisual

参数

compositor
Compositor

用于为动画视觉对象创建对象的 Compositor

diagnostics
Object

Platform::Object

IInspectable

有关 IAnimatedVisualSource 结果的 诊断信息。 对象的类型和内容取决于 IAnimatedVisualSource 实现。

此参数是可选的。

返回

IAnimatedVisualnull

实现

M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource.TryCreateAnimatedVisual(Windows.UI.Composition.Compositor,System.Object@) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource.TryCreateAnimatedVisual(Windows.UI.Composition.Compositor,Platform::Object@) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource.TryCreateAnimatedVisual(Windows.UI.Composition.Compositor,IInspectable@)

适用于

另请参阅