コード例 #1
0
        public Albums()
        {
            this.InitializeComponent();
            AlbumsCollection collection = new AlbumsCollection();

            collection.AddAlbumsToCollection();
            var somt = collection.GetAlbums();

            data.ItemsSource = somt;
        }
コード例 #2
0
        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);
        }