Beispiel #1
0
        public MainPage()
        {
            this.InitializeComponent();
            Songs   = new ObservableCollection <Song>();
            Artists = new ObservableCollection <Artist>();
            Albums  = new ObservableCollection <Album>();
            SongManager.GetAllSongs(Songs);
            SongManager.GetAllArtist(Artists); //Artists
            SongManager.GetAllAlbums(Albums);  //Albums

            Features = new List <Feature>();
            Features.Add(new Feature {
                IconFile = "Assets/Icons/Albums.png", Item = FeatureItems.Albums
            });
            Features.Add(new Feature {
                IconFile = "Assets/Icons/Artists.png", Item = FeatureItems.Artists
            });
            Features.Add(new Feature {
                IconFile = "Assets/Icons/Playlist.png", Item = FeatureItems.Playlist
            });

            BackButton.Visibility       = Visibility.Collapsed;
            PlayListGridView.Visibility = Visibility.Collapsed;
            ArtistsGridView.Visibility  = Visibility.Collapsed;
            AlbumsGridView.Visibility   = Visibility.Collapsed;

            MusicFolderPath = "";
        }