Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.45 KB

animatedicon_fallbackiconsource.md

File metadata and controls

45 lines (30 loc) · 1.45 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.AnimatedIcon.FallbackIconSource
winrt property

Microsoft.UI.Xaml.Controls.AnimatedIcon.FallbackIconSource

-description

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

-property-value

The static icon to use when the animated icon cannot run. The default is null.

-remarks

The fallback icon can be any icon type that inherits from IconSource, including BitmapIconSource, FontIconSource, ImageIconSource, PathIconSource, and SymbolIconSource.

-see-also

Animated icon overview, AnimatedIcon

-examples

<!-- 
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>