private void AlbumCollectionBase_SizeChanged(object sender, SizeChangedEventArgs e) { if (AlbumsZoomedInView.ItemsPanelRoot == null) { return; } TemplateSizer.ComputeAlbums(AlbumsZoomedInView.ItemsPanelRoot as ItemsWrapGrid, AlbumsZoomedInView.ItemsPanelRoot.ActualWidth - 6); }
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); }
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); }
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); } }
private void VideosWrapGrid_SizeChanged(object sender, SizeChangedEventArgs e) { TemplateSizer.ComputeCompactVideo(sender as ItemsWrapGrid, (sender as ItemsWrapGrid).ActualWidth - 16); }
private void MusicWrapGrid_SizeChanged(object sender, SizeChangedEventArgs e) { TemplateSizer.ComputeAlbums(sender as ItemsWrapGrid, (sender as ItemsWrapGrid).ActualWidth); }
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); }