简体   繁体   中英

How to add staggered item entrance animation to WinUI ItemsRepeater?

ItemsControl has an ItemContainerTransitions property that supports <EntranceThemeTransition IsStaggeringEnabled="True" /> . I want to move to ItemsRepeater for its improved performance with large lists. But ItemsRepeater doesn't seem to provide any bulit-in functionality similar to EntranceThemeTransition . Anyone know how I might achieve a similar animation effect for ItemsRepeater?

As of right now, there only is a preview API without documentation. You can take a look at the WinUI's MUXControlsTestApp that implemented some examples of using the ElementAnimator to create animations here: https://github.com/microsoft/microsoft-ui-xaml/tree/main/dev/Repeater/TestUI/Samples/AnimationSamples

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM