Beispiel #1
0
        private void HandlePullDownArrowContainerClick(object sender, RoutedEventArgs e)
        {
            if (!isPlayqueueExpanded)
            {
                if (LibraryViewModel.Current.PlayQueue.CurrentTrackPosition > 3)
                {
                    PlayQueueEntryViewModel pqeVM = LibraryViewModel.Current.PlayQueue.PlaybackQueue[LibraryViewModel.Current.PlayQueue.CurrentTrackPosition - 3];

                    PlayqueueList.ScrollIntoView(pqeVM, ScrollIntoViewAlignment.Leading);
                }

                VisualStateManager.GoToState(this, "PlayQueueOut", true);
                isPlayqueueExpanded        = true;
                MainContentFrame.IsEnabled = false;
            }
            else
            {
                PlayQueueListItem.CloseExpandedEntry();

                PlayqueueList.ReorderMode = ListViewReorderMode.Disabled;

                VisualStateManager.GoToState(this, "PlayQueueHidden", true);
                isPlayqueueExpanded = false;
            }
        }
Beispiel #2
0
        void HandleHardwareButtonsBackPressed(object sender, BackPressedEventArgs e)
        {
            if (isPlayqueueExpanded)
            {
                PlayQueueListItem.CloseExpandedEntry();

                PlayqueueList.ReorderMode = ListViewReorderMode.Disabled;

                VisualStateManager.GoToState(this, "PlayQueueHidden", true);
                isPlayqueueExpanded = false;

                e.Handled = true;
            }
        }
Beispiel #3
0
        private void HandleHomeContainerClick(object sender, RoutedEventArgs e)
        {
            if (isPlayqueueExpanded)
            {
                PlayQueueListItem.CloseExpandedEntry();

                PlayqueueList.ReorderMode = ListViewReorderMode.Disabled;

                VisualStateManager.GoToState(this, "PlayQueueHidden", true);
                isPlayqueueExpanded = false;
            }

            NavigationManager.Current.GoHome();
        }
Beispiel #4
0
 private void HandlePlayQueueReorderAppBarToggleButtonTapped(object sender, TappedRoutedEventArgs e)
 {
     PlayQueueListItem.CloseExpandedEntry();
 }
Beispiel #5
0
        private void HandlePlayqueueListHolding(object sender, HoldingRoutedEventArgs e)
        {
            PlayQueueListItem.CloseExpandedEntry();

            PlayqueueList.ReorderMode = ListViewReorderMode.Enabled;
        }