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 support for 3rd party controls. #403

Merged
merged 3 commits into from
Oct 6, 2021

Conversation

danielbanda
Copy link

@danielbanda danielbanda commented Sep 30, 2021

What changed?

IDragInfoBuilder enables the specification of a IDragInfo factory to handle unsupported 3rd party controls.
User can opt-in into this interface by adding the right binding in XAML: dd:DragDrop.DragInfoBuilder="{Binding}"

Added IDragInfoBuilder interface and DragInfoBuilder dependency property.
When IDragInfoBuilder is specified, the code calls the appropriate member from it to create the DragInfo object.
If this call returns null, it uses the regular DragInfo construction code. Same thing happens if when IDragInfoBuilder is NOT specified.

IDragInfoBuilder.CreateDragInfo is where custom code can be specified to handle the correct creation of DragInfo objects for custom controls.

For instance, I need to support Telerik's RadTreeListView but the same mechanism can be applied to any other 3rd or custom control that is not supported by default.

Closes #36

daniel.banda added 2 commits September 30, 2021 12:54
IDragInfoBuilder enables the specification of a DragInfo factory method to handle unsupported 3rd controls.
Improved comments.
Reverting unintended change.
@punker76 punker76 added this to the 3.0.0 milestone Oct 6, 2021
@punker76 punker76 merged commit 3e72b23 into punker76:develop Oct 6, 2021
@punker76
Copy link
Owner

punker76 commented Oct 6, 2021

@danielbanda 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.

Patch: DragInfofactory
2 participants