AnimatedBackVisualSource.TryCreateAnimatedVisual(Compositor, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to create an instance of an AnimatedBackVisualSource
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
.