uno
uno copied to clipboard
`ItemCollection` should not throw when getting items out of bounds
Current behavior
It seems that ItemCollection has a curious behavior in WinUI:
var comboBox = new ComboBox();
var item = comboBox.Items[2523]; // null, no exception thrown
In our case, exception is thrown
Expected behavior
No exception thrown
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
There is this curious behavior for DoubleCollection (and few others):