private void AlbumCollectionBase_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (AlbumsZoomedInView.ItemsPanelRoot == null)
     {
         return;
     }
     TemplateSizer.ComputeAlbums(AlbumsZoomedInView.ItemsPanelRoot as ItemsWrapGrid, AlbumsZoomedInView.ItemsPanelRoot.ActualWidth - 6);
 }
Esempio n. 2
0
        void ResponsiveAlbumsList()
        {
            if (AlbumsArtistsListView == null)
            {
                return;
            }
            var wrapGrid = AlbumsArtistsListView.ItemsPanelRoot as ItemsWrapGrid;

            if (wrapGrid == null)
            {
                return;
            }
            TemplateSizer.ComputeAlbums(wrapGrid, AlbumsArtistsListView.ActualWidth - wrapGrid.Margin.Left - wrapGrid.Margin.Right);
        }
Esempio n. 3
0
        void ResponsiveAlbumsWrapGrid()
        {
            if (AlbumsSemanticZoomZoomedOut == null)
            {
                return;
            }
            var wrapGridZoomedOut = AlbumsSemanticZoomZoomedOut.ItemsPanelRoot as ItemsWrapGrid;

            if (wrapGridZoomedOut == null)
            {
                return;
            }
            TemplateSizer.ComputeAlbums(wrapGridZoomedOut, AlbumsSemanticZoomZoomedOut.ActualWidth - wrapGridZoomedOut.Margin.Left - wrapGridZoomedOut.Margin.Right);
        }
Esempio n. 4
0
        void ResponsiveTracksListView()
        {
            if (AlbumsListView == null)
            {
                return;
            }
            var wrapGrid = AlbumsListView.ItemsPanelRoot as ItemsWrapGrid;

            if (wrapGrid == null)
            {
                return;
            }
            if (AlbumsSemanticZoom.IsZoomedInViewActive)
            {
                TemplateSizer.ComputeAlbumTracks(ref wrapGrid, AlbumsListView.ActualWidth - wrapGrid.Margin.Left - wrapGrid.Margin.Right);
            }
        }
Esempio n. 5
0
 private void VideosWrapGrid_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     TemplateSizer.ComputeCompactVideo(sender as ItemsWrapGrid, (sender as ItemsWrapGrid).ActualWidth - 16);
 }
Esempio n. 6
0
 private void MusicWrapGrid_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     TemplateSizer.ComputeAlbums(sender as ItemsWrapGrid, (sender as ItemsWrapGrid).ActualWidth);
 }
Esempio n. 7
0
 private void ItemsWrapGrid_Loaded(object sender, RoutedEventArgs e)
 {
     TemplateSizer.ComputeAlbums(sender as ItemsWrapGrid, this.ActualWidth - 24, TemplateSize.Normal);
 }
 private void VideosWrapGrid_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     TemplateSizer.ComputeCompactVideo(sender as ItemsWrapGrid, CameraRollListView.ActualWidth);
 }