閱讀英文

共用方式為


AnimatedSettingsVisualSource.TryCreateAnimatedVisual 方法

定義

嘗試建立AnimatedIcon物件的實例 AnimatedSettingsVisualSource

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱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@)

適用於

另請參閱