IAnimatedVisualSource.TryCreateAnimatedVisual(Compositor, Object) Method

Definition

Attempts to create an instance of an animated visual.

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

public:
 IAnimatedVisual ^ TryCreateAnimatedVisual(Compositor ^ compositor, [Out] Platform::Object ^ & diagnostics);
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 that will be used to create objects for the animated visual.

diagnostics
Object

Platform::Object

IInspectable

An optional object containing diagnostics information about the result. The type and contents of the object depend on the implementation of IAnimatedVisualSource.

Returns

An IAnimatedVisual, or null.

Remarks

The diagnostics argument contains optional diagnostics information about the animated visual. The runtime type of the object and the meaning of its information is determined by the IAnimatedVisualSource.

Applies to

See also