TemplateStudio
TemplateStudio copied to clipboard
TreeView Page - SelectionMode = Multiple Causes Win Error
Describe the bug
If you generate a new template and add the TreeView page, then change the SelectionMode of the control to Multiple, it eventually causes an error.
To Reproduce
- Go to an new or existing Template Studio Template.
- If new, add a TreeView Page, if existing, use the Context Menu to add a new TreeView Page.
- Open the view for the page to see XAML.
- Change the SelectionMode from 'Single' to 'Multiple'
- Build the application
- Navigate to the new page
- See the Checkbox/Multi-Select box
- Click on any box, top level or bottom level
- See error:

Additional context
Here is a link to a repo for you to try:
Here is a log from Event Viewer:

Applies to the following platforms:
- [ ] WinUI
- [ ] WPF
- [X] UWP
About your setup
- Visual Studio Version: VS2019
- Template Studio Wizard Version: 4.1.21179.1
- Windows Build: Version 10.0.22000 Build 22000 (However, I can replicate the exact issue on a number of Win 10 builds.)