Programmatically dismiss a MessageDialog
问题 On Windows Phone 8.1, how to programmatically dismiss a MessageDialog after the ShowAsync call? I’ve tried calling IAsyncInfo.Close(), it just throws an InvalidOperationException "An illegal state change was requested". I’ve tried calling IAsyncInfo.Cancel(). The dialog stays visible, the only result - after I tap the “Close” button, TaskCancelledException is marshaled to the awaiting routine. Update: exact behavior depends on the sequence of the calls. If IAsyncOperation.Cancel() is invoked