Skip to content

ColorContrastConverter

Tim Heuer edited this page Oct 14, 2012 · 1 revision

ColorContrastConverter

What it is

This implementation of an IValueConverter is intended to look at a specific color value and determine the contrast based on YIQ and return either Windows.UI.Colors.Black or Windows.UI.Colors.White based on the contrast.

Usage

This is internally used by SettingsFlyout to determine if the Foreground of the header text should be White/Black based on the HeaderBrush color chosen.

Known Issues

None.