protected override void OnNavigatedTo(NavigationEventArgs e) { ViewModel = ((ViewModels.Telview)e.Parameter); if (ViewModel.SelectTel != null) { name.Text = ViewModel.SelectTel.name; num.Text = ViewModel.SelectTel.num; group.Text = ViewModel.SelectTel.group; image.Source = ViewModel.SelectTel.src; } }
protected override void OnNavigatedTo(NavigationEventArgs e) { if (e.Parameter.GetType() == typeof(ViewModels.Telview)) { this.ViewModel = (ViewModels.Telview)(e.Parameter); } Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.CanGoBack) { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; } else { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; } }