예제 #1
0
 public virtual void OnNavigatingFrom(NavigatingEventArgs args)
 {
     /* nothing by default */
 }
예제 #2
0
        public override void OnNavigatingFrom(NavigatingEventArgs args)
        {
            // Bug: if we don't reset the theme when we go out it f***s with the TrackViewer control on other pages
            RequestedTheme = ElementTheme.Default;

            if (!DeviceHelper.IsType(DeviceFamily.Mobile)) return;
            var isDark = App.Current.Shell.RequestedTheme != ElementTheme.Light;
            StatusBar.GetForCurrentView().ForegroundColor = isDark ? Colors.White : Colors.Black;
            StatusBar.GetForCurrentView().BackgroundColor = isDark ? Colors.Black : Colors.White;
            StatusBar.GetForCurrentView().BackgroundOpacity = 1;
        }
예제 #3
0
 private void FacadeNavigatingCancelEventHandler(object sender, NavigatingCancelEventArgs e)
 {
     var args = new NavigatingEventArgs(e, Content as Page);
     if (NavigationModeHint != NavigationMode.New)
         args.NavigationMode = NavigationModeHint;
     NavigationModeHint = NavigationMode.New;
     foreach (var handler in _navigatingEventHandlers)
     {
         handler(this, args);
     }
     e.Cancel = args.Cancel;
 }