-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.AnimatedIcon.FallbackIconSource |
winrt property |
Gets or sets the static icon to use when the animated icon cannot run.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
The static icon to use when the animated icon cannot run. The default is null
.
The fallback icon can be any icon type that inherits from IconSource, including BitmapIconSource, FontIconSource, ImageIconSource, PathIconSource, and SymbolIconSource.
Animated icon overview, AnimatedIcon
<!--
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
-->
<muxc:AnimatedIcon>
<animatedvisuals:AnimatedBackVisualSource/>
<muxc:AnimatedIcon.FallbackIconSource>
<muxc:SymbolIconSource Symbol="Back"/>
</muxc:AnimatedIcon.FallbackIconSource>
</muxc:AnimatedIcon>