Describe the bug
A. After a total deletion of all the rows present in Datagrid, the column resizing crash on visual.cs
Complementary/Very similars bugs :
B. After 50 element added then all deleted, it crash on visual.cs
C. (Same project) A scrollviewer Visible without any row in the Datagrid trigger a crash on visual.cs
To Reproduce
A. Steps to reproduce the behavior:
Click on 'Add 10'
Click on 'Erase All'
Resize the column width with mouse
See error "The specified Visual is not an ancestor of this Visual"
B. Steps to reproduce the behavior:
Click on 'ADD 10' (5 times, so 50elements)
Click on 'Erase All'
See error "The specified Visual is not an ancestor of this Visual"
C. Steps to reproduce the behavior:
In XAML, set the Scrollviewer visibility to "Visible"
Launch the project
See error "The specified Visual is not an ancestor of this Visual"
Expected behavior
Not a crash
Screenshots
Desktop (please complete the following information):
Additionnals comments :
This issue is reported because of a more problematic issue which is happening on datagrid on a more complex C# Solution : when the datagrid is displayed, after 2 total erasment of the row, the same crash appears. So I'm trying to isolate any crash source.
I believe you have posted this issue in the wrong repo. This is the WPF Behaviors repo, not the data grid repo. Please post this issue in the appropriate github repo.
Describe the bug A. After a total deletion of all the rows present in Datagrid, the column resizing crash on visual.cs
Complementary/Very similars bugs : B. After 50 element added then all deleted, it crash on visual.cs C. (Same project) A scrollviewer Visible without any row in the Datagrid trigger a crash on visual.cs
To Reproduce A. Steps to reproduce the behavior:
B. Steps to reproduce the behavior:
C. Steps to reproduce the behavior:
Expected behavior Not a crash
Screenshots
Desktop (please complete the following information):
Reproduction Link DataGrid_VisualCrash SIMPLE.zip
Additionnals comments : This issue is reported because of a more problematic issue which is happening on datagrid on a more complex C# Solution : when the datagrid is displayed, after 2 total erasment of the row, the same crash appears. So I'm trying to isolate any crash source.