[Windows] Setting IsClippedToBounds="True" inside a Border control will crash on Windows
Description
Whenever a layout inside a <Border> control has IsClippedToBounds="True", the app will crash on Windows. It's working fine on iOS and Android
For example, this will crash on Windows:
<Border>
<StackLayout IsClippedToBounds="True"></StackLayout>
</Border>
The same issue is happening with .NET 7. Didn't test .NET 6
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/activa/MauiBugClippedToBounds
Version with bug
8.0.3
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
When launching a debug build, the error message says "An unhandled Win32 error occurred"
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on Windows 11 and MacCatalyst, not repro on Android 14.0-API34 and iOS 17.0 with below Project: 18937.zip
I also see that crash only on Windows
Is this ever going to be fixed? This bug was reported 8 months ago.
Bug is still there, please fix it.