/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. The Parameter /// property is typically used to configure the page.</param> protected async override void OnNavigatedTo(NavigationEventArgs e) { ProgressRing1.IsActive = true; ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client(); ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text); ProgressRing1.IsActive = false; }
private async void ButtonGetData(object sender, RoutedEventArgs e) { ProgressRing1.IsActive = true; //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client(); ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); //ListBoxMeta.Items.Add(await client.GetDataAsync()); ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text); //TextBlockOutput.Text = await client.GetDataAsync(); ProgressRing1.IsActive = false; }
public BrowserStart() { this.InitializeComponent(); // Initialize the reference object with a service try{ client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); } catch{ WebViewBrowse.NavigateToString("Can't connect to the SurferLite server"); } // Source Code view is not visible on start of page. TextBlockSource.Visibility = Visibility.Collapsed; }