AnimatedIcon.FallbackIconSource Property
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.
Gets or sets the static icon to use when the animated icon cannot run.
public:
property IconSource ^ FallbackIconSource { IconSource ^ get(); void set(IconSource ^ value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
IconSource FallbackIconSource();
void FallbackIconSource(IconSource value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
IconSource FallbackIconSource();
void FallbackIconSource(IconSource value);
public IconSource FallbackIconSource { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public IconSource FallbackIconSource { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
var iconSource = animatedIcon.fallbackIconSource;
animatedIcon.fallbackIconSource = iconSource;
Public Property FallbackIconSource As IconSource
Property Value
The static icon to use when the animated icon cannot run. The default is null
.
- Attributes
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute
Examples
<!--
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
-->
<AnimatedIcon>
<animatedvisuals:AnimatedBackVisualSource/>
<AnimatedIcon.FallbackIconSource>
<SymbolIconSource Symbol="Back"/>
</AnimatedIcon.FallbackIconSource>
</AnimatedIcon>
Remarks
The fallback icon can be any icon type that inherits from IconSource, including BitmapIconSource, FontIconSource, ImageIconSource, PathIconSource, and SymbolIconSource.