HorizontalStackLayout Crashes Debugger on Negative Spacing #19513
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
layout-stack
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
This article states that negative spacing is allowed on the HorizontalStackLayout control, however, many times this will (randomly) crash Visual Studio's debugger.
Here is my code:
Issue was also confirmed on this post.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/JonesWebConsulting/HorizontalStackLayout_MS_Issue_19513.git
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Windows 11 Home 22H2
Did you find any workaround?
Removing the negative value from spacing fixes the issue, but then does not provide the desired spacing.
Relevant log output
GinRummyMAUI.dll!GinRummyMAUI.WinUI.App.InitializeComponent.AnonymousMethod__3_1(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e) Line 68 C#
The text was updated successfully, but these errors were encountered: