Пример #1
0
        private void GroupAlphArtists(object sender, RoutedEventArgs e)
        {
            ViewArtists.GroupDescriptions.Clear();
            ViewArtists.SortDescriptions.Add(new SortDescription("Nazwa", ListSortDirection.Ascending));
            AlbumGrouper grouper = new AlbumGrouper();

            ViewArtists.GroupDescriptions.Add(new PropertyGroupDescription("Nazwa", grouper));
        }
Пример #2
0
        private void GroupAlphPlaylist(object sender, RoutedEventArgs e)
        {
            ViewPlaylist.GroupDescriptions.Clear();
            ViewPlaylist.SortDescriptions.Add(new SortDescription("Tytul", ListSortDirection.Ascending));
            AlbumGrouper grouper = new AlbumGrouper();

            ViewAllSongs.GroupDescriptions.Add(new PropertyGroupDescription("Tytul", grouper));

            AlphabeticallyGroupPlaylistButton.Content = "Wyłącz grupowanie";
            AlphabeticallyGroupPlaylistButton.Click  += new RoutedEventHandler(this.Group_NonePlaylist);
        }