Handling High Contrast Themes

The built-in controls automatically adjust their appearance when the user enables a high contrast theme. They adjust their colors to match the theme’s eight user-customizable colors, and in some cases they change their rendering in other ways. Because of this, your app can automatically look correct under a high contrast theme without you doing extra work. However, when you use images or hardcoded colors, which are quite common, problems arise. Images can be a problem when they convey information but do not use enough contrast. Hardcoded colors are a problem for the same reason, but also because they can make things completely unreadable when intermixed with colors that drastically change under a high contrast theme. ...

Get Universal Windows® Apps with XAML and C# 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.