6a12c7809d
Related Work Items: #251, #252, #261
26 lines
695 B
C#
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();
|
|
}
|
|
}
|
|
}
|