Skip to content

Fix nested ItemsControl behaviour issues highlighted in issue #336 - #377

Merged
punker76 merged 1 commit into
punker76:developfrom
Metritutus:NestedItemsControlFix
Aug 10, 2021
Merged

punker76 merged 1 commit into
punker76:developfrom
Metritutus:NestedItemsControlFix

Conversation

@Metritutus

Copy link
Copy Markdown
Contributor

This should hopefully fix issue #336.

What changed?

  • Fixed DragSourceUp() method using incorrect ItemsControl instance for item selection on mouse-up (relates to nested ItemsControls, eg RowDetails for DataGrid).
  • Updated DragSourceUp() method to set the selected item for the sender object if it is an ItemsControl but is not the VisualSource of the DragInfo instance (relates to nested ItemsControls, eg RowDetails for DataGrid).

* Fixed DragSourceUp() method using incorrect ItemsControl instance for item selection on mouse-up (relates to nested ItemsControls, eg RowDetails for DataGrid).
* Updated DragSourceUp() method to set the selected item for the sender object if it is an ItemsControl but is not the VisualSource of the DragInfo instance (relates to nested ItemsControls, eg RowDetails for DataGrid).
@Metritutus Metritutus changed the title Update DragDrop.cs Fix nested ItemsControl behaviour issues highlighted in issue #336 Aug 8, 2021
@punker76 punker76 added this to the 2.4.0 milestone Aug 10, 2021
@punker76
punker76 merged commit cc3ab6c into punker76:develop Aug 10, 2021
@punker76

Copy link
Copy Markdown
Owner

@Metritutus your changes have been merged, thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants