Where is my UWP status bar? and how to customize it.

Frankie Foo
Mar 7, 2016 · 2 min read

If you run UWP apps on Win 10 mobile (in dark mode) without any status bar customization, you will likely to see there would a black bar at the place where the system status bar would normally located.

Image for post
Image for post
default status bar in dark mode

This is caused by the default status bar foreground color, which is set to black. If the device is running in light mode, you will be able to see the status bar.

Image for post
Image for post
default status bar in light mode

To make sure that status bar is always visible (regardless of the colour theme of the device), you can customize it through code. You would need to add ‘Windows Mobile Extensions for the UWP’ reference to your project first.

Image for post
Image for post
customized status bar

For UWP app running on desktop, you can also customize the title bar of the application using similar method (which you can read more in the source listed below).

Further reading

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade