protected async override void OnNavigatedTo(NavigationEventArgs e) { //ScreenResolution screen = new ScreenResolution(); base.OnNavigatedTo(e); string msg = ""; string playlist_id = ""; if (NavigationContext.QueryString.TryGetValue("msg", out msg)) { playlist_id = msg; } YoutubeMethod ytb = new YoutubeMethod(); gridlist_gridview.ItemsSource = await ytb.get_video_Playlist(playlist_id); await ytb.channelInfo(); avatar_image.Source = new BitmapImage(new Uri(ytb.Channel_Avatar, UriKind.RelativeOrAbsolute)); channelname_textblock.Text = ytb.Channel_Title; //gridlist_gridview.Visibility = Visibility.Visible; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { YoutubeMethod ytb = new YoutubeMethod(); gridlist_gridview.ItemsSource = await ytb.video_Channel(); await ytb.channelInfo(); avatar_image.Source = new BitmapImage(new Uri(ytb.Channel_Avatar, UriKind.RelativeOrAbsolute)); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { // TODO: Prepare page for display here. //double width = Application.Current.RootVisual.RenderSize.Width - 20; await ytb.channelInfo(); avatar_image.Source = new BitmapImage(new Uri(ytb.Channel_Avatar, UriKind.RelativeOrAbsolute)); channelname_textblock.Text = ytb.Channel_Title; }