dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.03k stars 1.73k forks source link

XAMLC error using array for view model collection #10399

Open hartez opened 2 years ago

hartez commented 2 years ago

XAMLC throws an NRE when using an array as the source for a collection model, but works fine with a List.

Repro: https://github.com/333fred/maui-layout-bugs#bug-2---nullref-xaml-compiler

mattleibow commented 2 years ago

@StephaneDelcroix thoughts?

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ewerspej commented 1 year ago

Just out of curiosity, why are you trying to bind to an array? What is the design decision behind that?

Zhanglirong-Winnie commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 3.0(net8). Can repro on windows platform with sample project. maui-layout.zip Screenshot 2023-07-17 155602 Screenshot 2023-07-17 161423