public Albums() { this.InitializeComponent(); AlbumsCollection collection = new AlbumsCollection(); collection.AddAlbumsToCollection(); var somt = collection.GetAlbums(); data.ItemsSource = somt; }
protected override void OnNavigatedTo(NavigationEventArgs e) { AlbumsCollection coll = new AlbumsCollection(); coll.AddAlbumsToCollection(); string albumName = e.Parameter.ToString(); var alb = coll.GetAlbumByName(albumName); someData.ItemsSource = alb; base.OnNavigatedTo(e); }