Archived
1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
FoxTube/FoxTube/Pages/Browser.xaml.cs
T
Michael Gordeev 6a12c7809d Optimization, refactoring, debugging
Related Work Items: #251, #252, #261
2019-02-17 20:55:19 +03:00

26 lines
695 B
C#

using Windows.UI.Xaml.Controls;
namespace FoxTube.Pages
{
public sealed partial class Home1 : Page
{
public Home1()
{
InitializeComponent();
}
public async void Initialize()
{
SecretsVault.HttpClient.DefaultRequestHeaders.Referrer = "https://youtube.com/".ToUri();
string response = await SecretsVault.Service.HttpClient.GetStringAsync(adress.Text);
code.Text = response;
//view.NavigateToString(response);
}
private void Adress_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
{
Initialize();
}
}
}