AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
233 stars 48 forks source link

[Bug] Cannot deselect row when SingleSelect is enabled #258

Closed VMelnalksnis closed 4 months ago

VMelnalksnis commented 4 months ago

AvaloniaUI version 11.0.9 / TreeDataGrid version 11.0.2

Description

It is not possible to deselect the selected row using Ctrl+click when SingleSelect=true. It works as expected with SingleSelect=false.

Steps to repoduce

  1. Change this value in the sample project to true: https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/blob/95632c9430f879bc212c7665f7e7be4951d1de3c/samples/TreeDataGridDemo/ViewModels/FilesPageViewModel.cs#L88
  2. Run the sample app, switch to Files and select any row
  3. See that you cannot deselect that row with Ctrl+click