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 ...

Get Programming Windows®, Six Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.