Пример #1
0
 private void HelpButton_OnClick(object sender, RoutedEventArgs e)
 {
     AppTitleTextBlock.Text = App.ResourceLoader.GetString("Text_Title_Help");
     ContentFrame.Navigate(typeof(HelpPage));
     SplitView.IsPaneOpen = false;
     Spotlight.Hide(true);
 }
Пример #2
0
        private void HamburgBackButton_OnMenuClicked(object sender, EventArgs e)
        {
            SplitView.IsPaneOpen = !SplitView.IsPaneOpen;

            if (SplitView.IsPaneOpen)
            {
                Spotlight.Hide();
            }
        }
Пример #3
0
        public MainPage()
        {
            InitializeComponent();
            Window.Current.SetTitleBar(TitleBarHolder);
            Spotlight.Hide();

            ViewModel = ViewModelLocator.Instance.MediaLibraryViewModel;
            ContentFrame.Navigated += ContentFrameOnNavigated;
            ContentFrame.Navigate(typeof(PlaylistTopContentPage));
            SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
            Spotlight.PointerWheelChanged += SpotlightOnPointerWheelChanged;
        }
Пример #4
0
 private void CreatePlaylistButton_OnClick(object sender, RoutedEventArgs e)
 {
     ContentFrame.Navigate(typeof(CreatePlaylistPage));
     SplitView.IsPaneOpen = false;
     Spotlight.Hide(true);
 }