Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.22 KB

animatedicon_fallbackiconsource.md

File metadata and controls

43 lines (29 loc) · 1.22 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.

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