You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolling quickly through the TreeView items in an "up-down-up-down" sequence, the application consistently crashes. This issue occurs with the item count enough to perform long scrolls and seems to be triggered only by rapid scrolling. The amount of scrolls required to trigger the issue varies, sometimes it crashes only after 3-4 such iterations.
Slow scrolling as well as scrolling with a mouse wheel does not seem to cause any issues.
Similar controls such as ListViewdo not seem to cause such issues under the same conditions.
Exception Message Source object type is not a projected type and does not inherit from a projected type. (Parameter 'value')
Stack Trace
at WinRT.CastExtensions.GetRefForObject(Object value)
at WinRT.CastExtensions.As[TInterface](Object value)
at TreeViewScrollingIssue.MainWindow.MainWindow_obj3_Bindings.SetDataRoot(Object newDataRoot) in \\TreeViewScrollingIssue\obj\x64\Debug\net8.0-windows10.0.19041.0\win-x64\MainWindow.g.cs:line 190
at TreeViewScrollingIssue.MainWindow.MainWindow_obj3_Bindings.ProcessBindings(Object item, Int32 itemIndex, Int32 phase, Int32& nextPhase) in \\TreeViewScrollingIssue\obj\x64\Debug\net8.0-windows10.0.19041.0\win-x64\MainWindow.g.cs:line 141
at ABI.Microsoft.UI.Xaml.Markup.IDataTemplateComponent.Do_Abi_ProcessBindings_1(IntPtr thisPtr, IntPtr item, Int32 itemIndex, Int32 phase, Int32* nextPhase)
Describe the bug
When scrolling quickly through the
TreeView
items in an "up-down-up-down" sequence, the application consistently crashes. This issue occurs with the item count enough to perform long scrolls and seems to be triggered only by rapid scrolling. The amount of scrolls required to trigger the issue varies, sometimes it crashes only after 3-4 such iterations.ListView
do not seem to cause such issues under the same conditions.Exception Message
Source object type is not a projected type and does not inherit from a projected type. (Parameter 'value')
Stack Trace
Steps to reproduce the bug
TreeView
quickly all the way up and down sequentially.Expected behavior
The
TreeView
should handle rapid scrolling without crashing the application, like other similar controls.Screenshots
Unhandled exception in VS
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
Source code: https://github.com/datskiy/TreeViewScrollingIssue
The text was updated successfully, but these errors were encountered: