uno icon indicating copy to clipboard operation
uno copied to clipboard

`ItemCollection` should not throw when getting items out of bounds

Open MartinZikmund opened this issue 1 year ago • 1 comments

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

MartinZikmund avatar Aug 20 '24 14:08 MartinZikmund

There is this curious behavior for DoubleCollection (and few others):

image

Youssef1313 avatar Aug 20 '24 22:08 Youssef1313