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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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
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