Ejemplo n.º 1
0
        private async void MainPage_OnLoaded(object sender, RoutedEventArgs e)
        {
            try
            {
                Account.RootObject account = await ApiHandle.GetAccount();

                txtTitle.Text = account.items[0].snippet.title;
                Image image = new Image();
                image.Source     = new BitmapImage(new Uri(account.items[0][email protected], UriKind.Absolute));
                btnImage.Content = image;
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Can not connect to API");
            }
        }