TreeView with derived TreeViewNodes crashes in WinUI3 Desktop #2699
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
area-TreeView
product-winui3
WinUI 3 issues
team-Controls
Issue for the Controls team
Describe the bug
TreeView using derived TreeViewNodes causes crash in WinUI3 Desktop. TreeView using derived TreeViewNodes works in UWP.
Steps to reproduce the bug
Expected behavior
We expect the TreeView using inherited TreeViewNodes to behave as it does in UWP. We expect to see two TreeViews - one on the left and another on the right.
See Screenshot#2 for exact expected behavior.
Build and run TreeViewUWP solution inside the TreeViewUWP folder to see expected behavior.
Screenshots
Screenshot#1 - Current Behavior
Screenshot#2 - Expected Behavior
Version Info
NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)
Additional context
Extra debugging
If we collapse treeView1, the application still crashes.
To replicate this, change the Visibility on line 34 in MainWindow.xaml to "Collapsed".
Line 34:
Visibility="Collapsed"/>
However, if we collapse treeView2, the application runs, but does not display the TreeView with the inherited TreeViewNodes.
To replicate this, change the Visibility on line 40 in MainWindow.xaml to "Collapsed".
Line 40:
Visibility="Collapsed"/>
The text was updated successfully, but these errors were encountered: