Inside the AppBar Control

AppBar is a custom ItemsControl that wraps a Microsoft.Phone.Shell.ApplicationBar. As it is an ItemsControl, it enables you to add buttons and menu items to it, either in code or in XAML, in a manner not unlike the built-in ApplicationBar.

When the AppBar control is first loaded, it sets the host page’s ApplicationBar to its own ApplicationBar field.

The AppBar.Build method is used to populate the ApplicationBar and is called in the following situations:

Image When its Loaded event is raised

Image When its collection of buttons or ...

Get Windows® Phone 8 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.