Exploring the Built-In Application Bar

The phone’s application bar API is somewhat of a conundrum. It has several serious limitations that make it difficult to work with, and considering that the application bar is such a fundamental element of most phone apps, it is odd that its API did not receive more care and attention during the development of the Windows Phone SDK.

The ApplicationBar class uses an interop wrapper to communicate with the phone’s native application bar. The ApplicationBar is not a UIElement, nor is it a DependencyObject; in fact, it does not reside in the usual UI class hierarchy at all. Furthermore, at runtime, the ApplicationBar exists outside the visual tree of your root visual, making interaction with it awkward.

Several ...

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.