DependencyObjectCollection.Indexer throws ArgumentOutOfRangeException #19253
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
On Uno,
new DependencyObjectCollection()[2]
throws:Expected behavior
On WinUI,
new DependencyObjectCollection()[2]
returnsnull
.How to reproduce it (as minimally and precisely as possible)
n/a
Workaround
n/a
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
Skia (GTK), Skia (Linux Framebuffer), Skia (macOS), Skia (Linux X11), Skia (WPF), Mac Catalyst, iOS, Android, WebAssembly
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
edit: the next part is from static analysis, it is not actually correct...
see comment below, for the actual callstack with native debugging
https://github.com/microsoft/microsoft-ui-xaml/blob/winui3/release/1.6.4/src/dxaml/xcp/components/DependencyObject/DependencyObjectCollection.cpp#L30-L33
https://github.com/microsoft/microsoft-ui-xaml/blob/main/src/dxaml/xcp/components/Collection/Inc/docollection.h
https://en.cppreference.com/w/cpp/container/vector/operator_at
The text was updated successfully, but these errors were encountered: