MVVM light ViewModelLocator 是否可以识别正在加载的视图然后动态生成视图模型?
public ViewModelLocator()
{
ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
//Find the current window/ user control loading
ContentControl control =
//Generate the View model dynamically
//Register to dynamically created view model
SimpleIoc.Default.Register<SelectedViewModel>();
}