Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.63 KB

animatediconsource.md

File metadata and controls

35 lines (22 loc) · 1.63 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.AnimatedIconSource
winrt class

Microsoft.UI.Xaml.Controls.AnimatedIconSource

-description

Represents a shareable object used to create an icon that displays and controls a visual that can animate in response to user interaction and visual state changes.

-remarks

Note

AnimatedIconSource is similar to AnimatedIcon. However, because it is not a FrameworkElement, it can be shared.

You don't set the state directly on an AnimatedIconSource. Instead, set the AnimatedIcon.State attached property on an ancestor element of the AnimatedIconSource.

-examples

Tip

For more info, design guidance, and code examples, see Animated icon.

[!div class="nextstepaction"] Open the WinUI 3 Gallery app and see the AnimatedIcon in action

The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.

-see-also

Animated icon overview, AnimatedVisualPlayer, VisualStateManager, Lottie-Windows, IAnimatedVisual