Skip to content

App Crash with GridSplitter Control in combination with a ListViewΒ #4591

@odp-remec

Description

@odp-remec

Describe the bug

WinUI 3 application throws an exception when you move the GridSplitter Control. This happens if you use a GridSplitter in combination with a ListView or a TreeView.

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

1. Create a new WinUI3 Desktop Project (Blank App, Packaged)
2. Add CommunityToolkit.WinUI.UI.Controls nuget package (Version 7.1.2)
3. Edit MainWindow.xaml and add one ListView and one GridSplitter inside a Grid.
4. Add enough ListViewItems (e.g. 50) for the error to occur

Expected behavior

GridSplitter can be moved without any exception or crash of the application.

Screenshots

SplitterAndListViewCrash

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

Windows 10 21H2 (Build 19044)

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

Version 17.2.5

Device form factor

Desktop

Nuget packages

  • CommunityToolkit.WinUI.UI.Controls (7.1.2)
  • Microsoft.Windows.SDK.BuildTools (10.0.22000.194)
  • Microsoft.WindowsAppSDK (1.1.1)

Additional context

Sample Application: Splitter.zip

Help us help you

Yes, but only if others can assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WinUI πŸ’ Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.bug πŸ›An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions