-
Couldn't load subscription status.
- Fork 1.4k
Description
Describe the bug
If you're typing in search, the Sample App can crash. This appears to be a failure due to an animation based effect on the search result items. There may also be a different similar issue as @avknaidu mentioned they can repro in the existing sample app, but we have since replaced it's animations with the new animation set from #3639.
Steps to Reproduce
- Can this be reproduced in the Sample App?
Steps to reproduce the behavior:
- Open Sample app
- Search for something like 'System'
- Place mouse over an item so that it gets larger
- Modify search (with keyboard)
- Crash
Expected behavior
Not crash
Environment
Latest main
Additional context
FYI @Sergio0694
This is crashing in the Scale animation setup in the ItemContainer_PointerExited method of Shell.SamplePicker.cs which is initialized by the GridView SamplePickerGridView on each GridViewItem in SamplePickerGridView_ChoosingItemContainer.
System.ArgumentException
HResult=0x80070057
Message=The parameter is incorrect.
element
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
at Windows.UI.Xaml.Hosting.ElementCompositionPreview.SetIsTranslationEnabled(UIElement element, Boolean value)
at Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder.Start(UIElement element) in H:\\code\\WindowsCommunityToolkit\\Microsoft.Toolkit.Uwp.UI.Animations\\Builders\\AnimationBuilder.cs:line 69
at Microsoft.Toolkit.Uwp.SampleApp.Shell.ItemContainer_PointerExited(Object sender, PointerRoutedEventArgs e) in H:\\code\\WindowsCommunityToolkit\\Microsoft.Toolkit.Uwp.SampleApp\\Shell.SamplePicker.cs:line 239