Share via


AnimatedSettingsVisualSource.TryCreateAnimatedVisual Method

Definition

Attempts to create an instance of an AnimatedSettingsVisualSource object for an AnimatedIcon.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

Parameters

compositor
Compositor

The Compositor used to create objects for the animated visual.

diagnostics
Object

Platform::Object

IInspectable

Diagnostics information about the IAnimatedVisualSource result. The type and contents of the object depend on the IAnimatedVisualSource implementation.

This parameter is optional.

Returns

An IAnimatedVisual, or null.

Implements

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@)

Applies to

See also