Share via


AnimatedAcceptVisualSource.TryCreateAnimatedVisual(Compositor, Object) Method

Definition

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

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(Microsoft.UI.Composition.Compositor,System.Object@) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource.TryCreateAnimatedVisual(Microsoft.UI.Composition.Compositor,Platform::Object@) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource.TryCreateAnimatedVisual(Microsoft.UI.Composition.Compositor,IInspectable@)

Applies to

See also