[英]How to add staggered item entrance animation to WinUI ItemsRepeater?
ItemsControl has an ItemContainerTransitions
property that supports <EntranceThemeTransition IsStaggeringEnabled="True" />
. ItemsControl 具有支持
<EntranceThemeTransition IsStaggeringEnabled="True" />
的ItemContainerTransitions
属性。 I want to move to ItemsRepeater for its improved performance with large lists.我想转移到 ItemsRepeater 以提高大型列表的性能。 But ItemsRepeater doesn't seem to provide any bulit-in functionality similar to
EntranceThemeTransition
.但是 ItemsRepeater 似乎没有提供任何类似于
EntranceThemeTransition
的内置功能。 Anyone know how I might achieve a similar animation effect for ItemsRepeater?任何人都知道我如何为 ItemsRepeater 实现类似的 animation 效果?
As of right now, there only is a preview API without documentation.截至目前,只有预览版 API 没有文档。 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
您可以在此处查看 WinUI 的 MUXControlsTestApp,它实现了一些使用 ElementAnimator 创建动画的示例: https://github.com/microsoft/microsoft-ui-xaml/tree/main/dev/Repeater/TestUI/Samples/动画样本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.