private async void GetAppCountButton_Click(object sender, RoutedEventArgs e) { try { var count = await _filter.GetRegisterAppCountAsync(); GetAppCountBlock.Text = count.ToString(); } catch (Exception exception) { DisplayException(exception); } }
private async void GetAppCountButton_Click(object sender, RoutedEventArgs e) { try { var count = await _filter.GetRegisterAppCountAsync(); await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { GetAppCountBlock.Text = count.ToString(); }); } catch (Exception exception) { DisplayException(exception); } }