drag-drop and data binding in MVVM

Posted by Benny on Stack Overflow See other posts from Stack Overflow or by Benny
Published on 2010-05-19T16:13:12Z Indexed on 2010/05/19 16:20 UTC
Read the original article Hit count: 265

Filed under:
|
|

My ViewModel:

class ViewModel
{
public string FileName {get;set;}
}

and in my View I bind a label's content to ViewModel's FileName.

now When I do drag-drop a file to my View, How can I update the label's Content property, so that the ViewMode's FileName also get updated via binding?

Directly set the label's Content property won't work, it just simply clear the binding.

© Stack Overflow or respective owner

Related posts about drag-and-drop

Related posts about wpf-binding