Can a UserControl's ViewModel constructor be set up to fire with the view's DataContext AND another dependency injection?
I would like to be able to get the UserControl's datacontext (set in it's parent's veiw) and a database service into a ViewModel.
Can't figure this out:
public MyUserControlViewModel( theDataContext, InvoiceService)
{
}
This works:
public MyUserControlViewModel( theDataContext)
{
}
This works:
public MyUserControlViewModel( InvoiceService)
{
}