public Object GetView <TViewModelType>(Action <TViewModelType> initAction) where TViewModelType : class, IViewModel { IViewModel viewModel = ViewModelManager.CreateInstance <TViewModelType>(initAction); if (viewModel == null) { return(null); } return(GetView(viewModel, typeof(TViewModelType))); }