AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
266 stars 54 forks source link

An exception is thrown in specific conditions #182

Closed MihaMarkic closed 1 year ago

MihaMarkic commented 1 year ago

An exception "Unable to cast object of type 'TreeViewProblem.A' to type 'TreeViewProblem.C'." is thrown under specific conditions.

  1. Run attached project.
  2. Double click on root node 1, not the icon to the left of it.
  3. Click button swap (bottom right)
  4. Double click on root node 2.
  5. Exception is thrown.

problem.zip

MihaMarkic commented 1 year ago

Duh, sorry, it's TreeView, not TreeDataGrid. I'll post there.