Closed josh2112 closed 1 year ago
@josh2112 After investigating your issue, I found some points. First I can solve your issue, but only for the first empty group, which was added by your code behind. Second, it can't be solved in general, because the ListView doesn't allow empty groups in general! It's not support by WPF. Also in your sample, if I put some items in your group then all is fine, but if I remove the items completely then you group is gone. And then it's not possible to add a new group without any issues.
Sorry that I must say that. Maybe a TreeView with only one Level is better for you to solve this.
kind regards Jan
Describe the bug When dragging something over an empty group in a
ListView
with grouping enabled, the drop target adorner doesn't draw in the correct place.To Reproduce Steps to reproduce the behavior:
Expected behavior Drop adorner under the empty group (between Group 1 and Group 2 labels)
Desktop (please complete the following information):
Additional context
IDropInfo.TargetGroup
does get populated when dragging over a group header, allowing me to complete the drop and move the item to its proper place, but with the drop target adorner being drawn in the wrong place, a user won't know that it does in fact work!Thanks for reviewing!