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