protected override async void OnNavigatedTo(NavigationEventArgs e) { string name = NavigationContext.QueryString["name"]; string info = NavigationContext.QueryString["info"]; info = "http://nhaccuatui.com/" + info; ArtistViewModel Artist = new ArtistViewModel(new Artist() { Name = name, Info = info }); await Artist.LoadDataInitAsync(); App.ArtistVM.Coppy(Artist); albumslls.ScrollTo(App.ArtistVM.AlbumList.First()); songsView.ScrollTo(App.ArtistVM.TrackList.First()); }
public void Coppy(ArtistViewModel artistVM) { Name = artistVM.Name; ArtistInfo = artistVM.ArtistInfo; Cover = artistVM.Cover; BgImage = artistVM.BgImage; AlbumList.Clear(); TrackList.Clear(); foreach (var album in artistVM.AlbumList) { AlbumList.Add(album); } foreach (var track in artistVM.TrackList) { TrackList.Add(track); } trackPage = artistVM.trackPage; albumPage = artistVM.albumPage; }
public void Coppy(ArtistViewModel artistVM) { Name = artistVM.Name; ArtistInfo = artistVM.ArtistInfo; Cover = artistVM.Cover; BgImage = artistVM.BgImage; AlbumList.Clear(); TrackList.Clear(); foreach (var album in artistVM.AlbumList) AlbumList.Add(album); foreach (var track in artistVM.TrackList) TrackList.Add(track); trackPage = artistVM.trackPage; albumPage = artistVM.albumPage; }