public MainPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; }
public RoadSelectionPage() { try { this.InitializeComponent(); // Setup the navigation helper this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; this.NavigationCacheMode = NavigationCacheMode.Enabled; // Setup the logical page navigation components that allow // the page to only show one pane at a time. this.navigationHelper.GoBackCommand = new RelayCommand(() => this.GoBack(), () => this.CanGoBack()); // Start listening for Window size changes // to change from showing two panes to showing a single pane Window.Current.SizeChanged += Window_SizeChanged; this.InvalidateVisualState(); } catch (Exception e) { e.ToString(); } }
public NewSurveyPage() { InitializeComponent(); // Add a handler for the map update event // SingleSegmentNewSurveyVm.UpdateGeopositionOnMap += UpdateMap; // Setup the navigation helper navigationHelper = new NavigationHelper(this); navigationHelper.LoadState += navigationHelper_LoadState; navigationHelper.SaveState += navigationHelper_SaveState; // Setup the logical page navigation components that allow // the page to only show one pane at a time. navigationHelper.GoBackCommand = new RelayCommand(() => GoBack(), () => CanGoBack()); SegmentListView.SelectionChanged += SegmentListView_SelectionChanged; // Start listening for Window size changes // to change from showing two panes to showing a single pane Window.Current.SizeChanged += Window_SizeChanged; InvalidateVisualState(); }