protected override void OnNavigatedTo(NavigationEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.CanGoBack) { // Show UI in title bar if opted-in and in-app backstack is not empty. SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; } else { // Remove the UI from the title bar if in-app back stack is empty. SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; } view_Module = ((view_module.view_module)e.Parameter); if (view_Module.Select_item == null) { create_button.Visibility = Visibility.Visible; update_button.Visibility = Visibility.Collapsed; } else { create_button.Visibility = Visibility.Collapsed; update_button.Visibility = Visibility.Visible; title_block.Text = view_Module.Select_item.title; detail_block.Text = view_Module.Select_item.detail; images.Source = view_Module.Select_item.image; date.Date = view_Module.Select_item.date; } }
protected override void OnNavigatedTo(NavigationEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; if (rootFrame.CanGoBack) { // Show UI in title bar if opted-in and in-app backstack is not empty. SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; } else { // Remove the UI from the title bar if in-app back stack is empty. SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; } if (e.Parameter.GetType() == typeof(view_module.view_module)) { this.view_Module = (view_module.view_module)(e.Parameter); } }