O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required