Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable custom IDragInfo & IDropInfo implementations #424

Merged

Conversation

jizc
Copy link
Contributor

@jizc jizc commented Jan 11, 2022

What changed?

The new IDragInfoBuilder and IDropInfoBuilder are great, but there are still some scenarios where it's not possible to override default behavior.

This PR further embraces the IDragInfo and IDropInfo interfaces, enabling more custom implementations.

I needed this when implementing drag-n-drop for a custom multi selection tree view.

Breaking changes

  • IDragInfoBuilder.CreateDragInfo now returns IDragInfo instead of DragInfo
  • IDropInfoBuilder.CreateDropInfo now takes an IDragInfo instead of DragInfo
  • RefreshSourceItems method added to IDragInfo. This is not really a breaking change, as up until this PR, it wasn't possible to use a fully custom implementation of IDragInfo and any existing implementations will be inheriting from DragInfo.

@punker76 punker76 added this to the 4.0.0 milestone Jan 29, 2022
@punker76 punker76 added Breaking Change The changes which made are not backward compatible and removed Feature labels Jan 29, 2022
@jizc jizc force-pushed the feature/enable-more-custom-implementations branch from ff417c1 to 57c9116 Compare December 5, 2024 14:54
@punker76 punker76 merged commit 2e203bc into punker76:develop Dec 5, 2024
3 checks passed
@punker76
Copy link
Owner

punker76 commented Dec 5, 2024

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

@jizc jizc deleted the feature/enable-more-custom-implementations branch December 5, 2024 15:20
@jizc
Copy link
Contributor Author

jizc commented Dec 5, 2024

Thanks for merging! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change The changes which made are not backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants