コード例 #1
0
ファイル: ViewModelBase.cs プロジェクト: haroldma/Audiotica
 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
ファイル: FrameFacade.cs プロジェクト: haroldma/Audiotica
 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;
 }