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 O’Reilly online learning.

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