This is a migrated thread and some comments may be shown as answers.

Sending DragDrop Commands to ViewModel

0 Answers 81 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Sara
Top achievements
Rank 1
Sara asked on 23 Jun 2017, 08:33 PM

this is a followup to the question asked here


Wouldnt it be possible to implement it the way gong-wpf-dragdrop does it without breaking mvvm?

i considerthe line below in codebehind to not break mvvm so i could be wrong.

(DataContext as ViewModel).SelectedRecord

The way gong does it is you bind the view model itself, implement an interface and handle the logic using interface implementations.

Would love to be able to handle that logic in my VM rather than using a behavior

No answers yet. Maybe you can help?

Tags
DragAndDrop
Asked by
Sara
Top achievements
Rank 1
Share this question
or