-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttachedDropShadow Sample App Crash #4750
Comments
It's crashing if we just replace the ScrollViewer code but it works fine if we replace the whole code by just including the Page tag |
Hmm, interesting. We do have logic on that page in the code-behind: So, I wonder if something with this particular example is just causing that to fail. Should be easy to see what's failing if you run the Sample App from VS and reproduce the crash? At least it means this is independent of #4548 and may be isolated to the Sample App itself. |
If we just remove the Page. Resources code and Scrollviewer code and place the code user suggested then there is no crash(Can include all the namespaces as is) but if we include the Page. Resources code and then place Grid code then there is a crash in the sample app |
Thanks @LalithaNadimpalli can you provide the call stack as well? What called into this method? This is where the code is (you can select multiple lines in GitHub and get a permalink from the triple dot menu to embed these in comments as well like this): WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/Shadows/AttachedShadowBase.cs Lines 175 to 181 in 5d5d86f
It would seem somehow FYI @Ryken100 |
I created a PR by adding a null check to ShadowElementContextTable which fixed the issue |
Describe the bug
While looking at #4548 and seeing if we could reproduce it in the sample app, hit a crash when pasting in the XAML into the sample app...
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
No crash
Screenshots
No response
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Nuget packages
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: