Hello, I looked over this web and google and the solutions didn't work for me.
I have a command on the ViewModel of a UserControl. Well, The usercontrol have a ItemsControl binded to a ObservableCollection. Inside the DataTemplate of the ItemsControl.ItemTemplate I have a button and I want to use the command. I can't bind the command because inside the DataTemplate, the datacontext is not the ViewModel but an item of the ObservableCollection.
The question is: How can I bind the button to the command if a lost the parent datacontext?
Thank you.