private async void ProgressDialog_Opened(ContentDialog sender, ContentDialogOpenedEventArgs args)
{
ProgressDialog p = sender as ProgressDialog;
await DoCopyingAsync(p);
}
I’m aware that bad things happen when awaiting in async void methods, so how could I change my code is avoid this? This isn’t a ‘top level event handler’, where awaiting is 'permissible', but it gets fired after a call to
await progressDialog.ShowAsync();