// Executes when the user navigates to this page. protected override void OnNavigatedTo(NavigationEventArgs e) { m_deviceMeasurementDataList = new ObservableCollection <DeviceMeasurementData>(); m_activityWindow = new ActivityWindow("Loading Data... Please Wait..."); m_activityWindow.Show(); App app = (App)Application.Current; m_client.GetDeviceMeasurementDataAsync(app.NodeValue); }