protected override void OnNavigatedTo(NavigationEventArgs e) { Section12Model = NavigationServices.CurrentViewModel as Section12ViewModel; if (e.NavigationMode == NavigationMode.New && NavigationContext.QueryString.ContainsKey("id")) { string id = NavigationContext.QueryString["id"]; if (!String.IsNullOrEmpty(id)) { _isDeepLink = true; Section12Model = new Section12ViewModel(); NavigationServices.CurrentViewModel = Section12Model; Section12Model.LoadItem(id); } } if (Section12Model != null) { Section12Model.ViewType = ViewTypes.Detail; } DataContext = Section12Model; base.OnNavigatedTo(e); }