Skip to content

Binding ViewModel without windows dependency #391

Answered by Tenjim
Tenjim asked this question in Q&A
Discussion options

You must be logged in to vote

Hi guys,

Finally, I have found a solutions to doing that.

It's the binding need to be on the usercontrol and with that changes ViewModel will not have anymore Windows dependence:

DragDrop.DragHandler="{Binding ElementName=usercontrol}"
DragDrop.DropHandler="{Binding ElementName=usercontrol}"

Thanks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tenjim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant