Example #1
0
 private void SplitView_OnPaneClosing(SplitView sender, SplitViewPaneClosingEventArgs args)
 {
     if (ContentFrame.BackStackDepth > 0)
     {
         return;
     }
     Spotlight.Show();
 }
Example #2
0
 private void ContentFrameOnNavigated(object sender, NavigationEventArgs args)
 {
     if (ContentFrame.BackStackDepth > 0)
     {
         HamburgerButton.ShowBack();
         if (ContentFrame.Content is SongsCollectionPage)
         {
             AppTitleTextBlock.Foreground = HamburgerButton.Foreground = new SolidColorBrush(Colors.White);
         }
     }
     else
     {
         AppTitleTextBlock.Text = App.ResourceLoader.GetString("Text_Title_App");
         HamburgerButton.ShowMenu();
         AppTitleTextBlock.Foreground = HamburgerButton.Foreground = App.Current.Resources["TitleBarForegroundBrush"] as SolidColorBrush;
         Spotlight.Show(true);
         App.ResetTitleBarToAccentColor();
     }
 }