You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using ItemsControl with variety of item underlying types, the drag behaves incorrectly. The item type is evaluated incorrectly, thus drag won't work.
To Reproduce
Steps to reproduce the behavior:
Make ItemsSource element with binding to collection allowing different class types in that collection
Add those different class type items to the collection
Expected behavior
Drag action gets underlying collection type accordingly
The issue seems at ItemsControlExtensions.cs and its public static Type GetItemContainerType(this ItemsControl itemsControl, out bool isItemContainer, DependencyObject child) method
when item type is not identified correctly
I did a small workaround without larger method change:
Added new method to find appropriate item index by any item in VisualTree and changed slightly a process handling ItemsSource object. ItemsControlExtensions.zip
The text was updated successfully, but these errors were encountered:
Describe the bug
When using ItemsControl with variety of item underlying types, the drag behaves incorrectly. The item type is evaluated incorrectly, thus drag won't work.
To Reproduce
Steps to reproduce the behavior:
Make ItemsSource element with binding to collection allowing different class types in that collection
Add those different class type items to the collection
Expected behavior
Drag action gets underlying collection type accordingly
The issue seems at ItemsControlExtensions.cs and its
public static Type GetItemContainerType(this ItemsControl itemsControl, out bool isItemContainer, DependencyObject child)
methodwhen item type is not identified correctly
I did a small workaround without larger method change:
Added new method to find appropriate item index by any item in VisualTree and changed slightly a process handling ItemsSource object.
ItemsControlExtensions.zip
The text was updated successfully, but these errors were encountered: