From 39899eb8c916e6d0c60b9b730e6b70ec005fb23f Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Wed, 22 Jul 2020 11:41:59 -0700 Subject: [PATCH] Revert extra change to App.xaml.cs. --- WinUIDesktopSample/App.xaml.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/WinUIDesktopSample/App.xaml.cs b/WinUIDesktopSample/App.xaml.cs index be34ae050..5d6b505fb 100644 --- a/WinUIDesktopSample/App.xaml.cs +++ b/WinUIDesktopSample/App.xaml.cs @@ -41,18 +41,9 @@ protected override void OnLaunched(LaunchActivatedEventArgs args) myWindow = window; } - private async void Button_Click(object sender, RoutedEventArgs e) + private void Button_Click(object sender, RoutedEventArgs e) { - const string _root = "https://api.github.com"; - const string _repoName = "WindowsCommunityToolkit"; - const string _repoOwner = "Microsoft"; - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.TryAppendWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"); - - var uri = $"{_root}/repos/{_repoOwner}/{_repoName}/releases"; - var result = await client.GetStringAsync(new Uri(uri)); - } + myWindow.Content = new MainPage(); } }