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) { //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)); //gridlist_gridview.Visibility = Visibility.Visible; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { // TODO: Prepare page for display here. double width = Application.Current.RootVisual.RenderSize.Width - 20; YoutubeMethod ytb = new YoutubeMethod(); await ytb.channelInfo(); playlist_listbox.ItemsSource = await ytb.playlist_Channel(); avatar_image.Source = new BitmapImage(new Uri(ytb.Channel_Avatar, UriKind.RelativeOrAbsolute)); //turn_on_Page(); //await ytb.playlist_Channel(); //playlist_listbox.ItemsSource = ytb.playlist_Channel; // TODO: If your application contains multiple pages, ensure that you are // handling the hardware Back button by registering for the // Windows.Phone.UI.Input.HardwareButtons.BackPressed event. // If you are using the NavigationHelper provided by some templates, // this event is handled for you. }