Chapter 7. Asynchronicity
These days programmers are discouraged from making frequent use of message boxes, but I’m sure we can all acknowledge how useful they can be to give the user some important information in a very direct manner, or to obtain a vital Yes, No, or Cancel.
The Windows Runtime supports a message box with the MessageDialog class, and it’s actually quite versatile: Up to three buttons can be labeled with whatever text you’d like. However, there is no Show method in this class. The expected Show method has been replaced with ShowAsync.
That Async suffix is short for “asynchronous,” and that’s a very important sequence of five letters in the Windows Runtime. It’s not just a change of name; it’s a change in how you use the method and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access