CHAPTER 13

images

Using Menus & Dialogs

In this chapter, I show you how to create two kinds of popup UI controls. The first, the WinJS.UI.Menu control, is used to create context menus, which allow the user to perform actions directly on elements in your app layout. The Menu control is flexible and has some useful features, but I find the mechanism by which users activate context menus to be less than obvious, which means that careful thought is required when using this control.

The second control I describe in this chapter is slightly different from the others I describe in this book. The MessageDialog control is part of the Windows namespace and doesn’t ...

Get Pro Windows 8 Development with HTML5 and JavaScript 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.