Chapter 23. Working with Menus and Dialog Boxes

After completing this chapter, you will be able to:

  • Create menus for Microsoft Windows Presentation Foundation (WPF) applications by using the Menu and MenuItem classes.

  • Perform processing in response to menu events when a user clicks a menu command.

  • Create context-sensitive pop-up menus by using the ContextMenu class.

  • Manipulate menus through code and create dynamic menus.

  • Use Windows common dialog boxes in an application to prompt the user for the name of a file.

In Chapter 22, Chapter 22, you saw how to create a simple WPF application made up of a selection of controls and events. Many professional Microsoft Windows–based applications also provide menus containing commands and options, giving the user ...

Get Microsoft® Visual C#® 2008 Step by Step 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.