Sending DragDrop Commands to ViewModel

1 posts, 0 answers
  1. Sara
    Sara avatar
    1 posts
    Member since:
    Jun 2017

    Posted 23 Jun Link to this post

    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

Back to Top