Switching to Full-Screen

Switching to full-screen implies hiding the system tray and the application bar in its entirety. The early official Windows Phone architecture documents mention a supposed FullScreen property. Yet, in the final version of the SDK, no such property existed. No matter, because going full-screen involves simply hiding the system tray and the application bar. This is made rather easy by using the data binding capabilities of the custom AppBar class. Fortunately the system tray’s visibility is specified using a Boolean attached property called SystemTray.IsVisible. As a consequence, in the view, we are able to data bind this property to a viewmodel property, like so:

shell:SystemTray.IsVisible="{Binding SystemTrayVisible

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.