I have been testing NET MAUI (NET 7 with latest updates for Visual Studio and Windows) with different native components and recently noticed several issues.
Once I wrap my layout, that is having CollectionView or ListView inside Frame window, resize on Windows 11 or Windows 10 is not aligning properly CollectionView or ListView items. However changing Frame to Border is fixing this. So Border seems to be acting differently. See video below for demonstration (as you can see at certain point there is an empty space on the right and CollectionView is not taking all the width):
While wrapping layout that is having CollectionView or ListView inside Frame or Border, dragging application window from one monitor to another with different scale and resolution on Windows 10.0.19045 is crashing application. However on Windows 11 10.0.22621 Build 22621 it seems to be working fine. Also see below examples of code that is not crashing and that is crashing application on Windows 10.
Exception:
Windows version:
10.0.19045
ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0 (Int32 hr)
Microsoft.UI.Xaml.LayoutCycleException: A cycle occurred while laying out the GUI.
WinRT
ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0 (Int32 hr)
WinRT
ExceptionHelpers.ThrowExceptionForHR (Int32 hr)
ABI.Windows.ApplicationModel.Core
IUnhandledErrorMethods.Propagate (IObjectReference _obj)
Windows.ApplicationModel.Core
UnhandledError.Propagate ()
Microsoft.AppCenter.Utils
ApplicationLifecycleHelperWinUI.<ctor>b__0_3 (Object sender, UnhandledErrorDetectedEventArgs eventArgs)
Example of code used (crash on Windows 10 with above exception):
Description
I have been testing NET MAUI (NET 7 with latest updates for Visual Studio and Windows) with different native components and recently noticed several issues.
https://github.com/dotnet/maui/assets/72302395/69c7bbb5-6c01-4fed-8999-9a42ebe03f36
Exception:
Example of code used (crash on Windows 10 with above exception):
Example of code used (does NOT crash on Windows 10):
Steps to Reproduce
Link to public reproduction project repository
https://github.com/vadimffe/DraggingIssueNetMAUI
Version with bug
7.0.306
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10.0.19045, Windows 11 10.0.22621 Build 22621
Did you find any workaround?
No response
Relevant log output
No response