Exemple #1
0
        public bool IsNextPossible()
        {
            bool isPossible = (TrackCollection.Count != 1) && (CurrentTrack < TrackCollection.Count - 1);

            DispatchHelper.Invoke(() => CanGoNext = isPossible);
            return(isPossible);
        }
Exemple #2
0
        public bool IsPreviousPossible()
        {
            bool isPossible = (CurrentTrack > 0);

            DispatchHelper.Invoke(() => CanGoPrevious = isPossible);
            return(isPossible);
        }
        private void OnSizeChanged(object sender, SizeChangedEventArgs sizeChangedEventArgs)
        {
            DispatchHelper.Invoke(() =>
            {
                if (sizeChangedEventArgs.NewSize.Width < 1080)
                {
                    SectionsGrid.Margin = new Thickness(40, 0, 0, 0);
                }
                else
                {
                    SectionsGrid.Margin = new Thickness(50, 0, 0, 0);
                }


                if (sizeChangedEventArgs.NewSize.Width == 320)
                {
                    FullGrid.Visibility = Visibility.Collapsed;
                    SnapGrid.Visibility = Visibility.Visible;
                    SectionsHeaderListView.Visibility = Visibility.Collapsed;
                    SectionsGrid.Margin = new Thickness(0);
                }
                else
                {
                    FullGrid.Visibility = Visibility.Visible;
                    SnapGrid.Visibility = Visibility.Collapsed;
                    SectionsHeaderListView.Visibility = Visibility.Visible;
                    SectionsGrid.Margin = new Thickness(50, 0, 0, 0);
                }
            });
        }
 private void OnSizeChanged(object sender, SizeChangedEventArgs sizeChangedEventArgs)
 {
     DispatchHelper.Invoke(() =>
     {
         if (sizeChangedEventArgs.NewSize.Width == 320)
         {
             FirstPanelGridView.Margin      = new Thickness(10, 0, 0, 0);
             SecondPanelListView.Visibility = Visibility.Visible;
             SecondPanelGridView.Visibility = Visibility.Collapsed;
         }
         else
         {
             FirstPanelGridView.Margin      = new Thickness(100, 0, 0, 0);
             SecondPanelListView.Visibility = Visibility.Collapsed;
             SecondPanelGridView.Visibility = Visibility.Visible;
         }
     });
 }