public void OpenPage <PageViewModelType>(Action <IDataBundle> inflateBundle = null) where PageViewModelType : PageViewModel, new() { var tabPageVM = ViewModel.Pages.DataSource.Select(x => x.ViewModel).OfType <PageViewModelType>().FirstOrDefault(); var viewModel = tabPageVM ?? new PageViewModelType(); PassDataIfNeeded(viewModel, inflateBundle); var panelFrame = NavigationFrame.GetBindedFrame <INavigationPanelFrame>(); panelFrame.CurrentContentViewModel = viewModel; }