private async void OnDrawStatusChanged(object sender, DrawStatusChangedEventArgs e)
{
// Update the load status information
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
// Show the activity indicator if the map is drawing
if (e.Status == DrawStatus.InProgress)
{
activityIndicator.IsActive = true;
}
else
{
activityIndicator.IsActive = false;
}
});
}
}