Open Arlodotexe opened 2 years ago
@gegao18 or @stmoy is this an understood issue? I don't see anything obviously wrong.
I've been hitting this bug with my app. Any updates here?
Bumping, based on https://github.com/microsoft/microsoft-ui-xaml/discussions/8638
Describe the bug
When an ImplicitShowAnimation is set on an element that's hosted inside of an ItemsControl that uses
<ItemsStackPanel>
as the ItemsPanelTemplate, the animation appear to not run.Steps to reproduce the bug
Download and run the complete sample from CompositionAnimationsItemsControl.zip
To summarize:
Set up the ItemsControl
Compositor compositor = ElementCompositionPreview.GetElementVisual(Rect).Compositor; var animation = compositor.CreateScalarKeyFrameAnimation(); animation.Duration = System.TimeSpan.FromSeconds(1); animation.InsertKeyFrame(0, 0); animation.InsertKeyFrame(1, 1); animation.Target = "Opacity";
ElementCompositionPreview.SetImplicitShowAnimation(Rect, animation);
Expected behavior
The rectangle should fade in.
Screenshots
No response
NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
Device form factor
Desktop
Windows version
No response
Additional context
Tested on Windows 11 22000.348