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 DropInfo creation for 3rd party controls #411

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

danielbanda
Copy link

@danielbanda danielbanda commented Oct 20, 2021

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

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

IDropInfoBuilder.CreateDropInfo is where custom code can be specified to handle the correct creation of DropInfo 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.

IDropInfoBuilder enables the specification of a IDropInfo factory method to handle unsupported 3rd controls.
@punker76 punker76 added this to the 3.0.0 milestone Oct 27, 2021
@punker76
Copy link
Owner

Related to #36

@punker76 punker76 merged commit 1a7bccb into punker76:develop Oct 27, 2021
@punker76
Copy link
Owner

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

2 participants