Possible Duplicate:
Drag and Drop MVVM
I want to open a file when it is dropped on my application. I have found this question which is partly answering it. My problem is that I am using the MVVM pattern and need to call the openFile() method in the command line in the xaml file. Does anyone know how to call the method and add the correct file parameter to it so that i can open the file? I am not sure if I will have to use the command parameter, that is only what i have done in all the other method calls to the ViewModel file.
Here is a little from my XAML code:
<DockPanel
AllowDrop="True"
Drop="DockPanel_Drop">
Maybe it is possible to call the methods from the ViewModel from my code behind?