Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 11: Using Menu-Based Controls > Defining menu structure and data - Pg. 340

348 CHAPTER 11 Defining menu structure and data All menu-based controls use data providers with the following characteristics to specify the structure and contents of the menus: · The data providers are often hierarchical, but you can also have a single-level menu. · Individual menu items include fields that determine the menu item appearance and behavior. Menu-based controls support fields that define the label text, an icon, the menu item type, and item status. For information on meaningful fields, see "Specifying and using menu entry information" on page 349. About menu data providers The dataProvider property of a menu-based control specifies an object that defines the structure and contents of the menu. If a menu's contents are dynamic, you change the menu by modifying its data provider. Menu-based controls typically get their data from hierarchical data providers, such as nested arrays of objects or XML. If the menu represents dynamically changing data, you use an object that implements the ICollectionView