コード例 #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            video = (MainPage.Video)e.Parameter;

            videosTitle.Text = video.Title;

            try
            {
                await LoadPage();
            }
            catch (AggregateException ex)
            {
                MessageDialog m = new MessageDialog("Could play video: " + ex.Message, "WinBeta Videos Error");
                await m.ShowAsync();
            }
        }
コード例 #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            video = (MainPage.Video)e.Parameter;

            videosTitle.Text = video.Title;

            try
            {
                await LoadPage();
            }
            catch (AggregateException ex)
            {
                MessageDialog m = new MessageDialog("Could play video: " + ex.Message, "WinBeta Videos Error");
                await m.ShowAsync();
            }
        }