public static bool IsHighContrastBlack() { if (HighContrastHelper.IsHighContrastOn()) { return(!HighContrastHelper.IsHighContrastWhiteOn()); } return(false); }
public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string[] strArray = parameter.ToString().Split(','); int length = strArray.Length; if (HighContrastHelper.CurrentTheme == HighContrastTheme.None && value is Color) { return(value); } return((object)ConverterUtils.GetColorFromString(HighContrastHelper.GetTheme(value) == HighContrastTheme.None && !false ? strArray[0].Trim() : (length != 3 || !HighContrastHelper.IsHighContrastWhiteOn() ? strArray[1].Trim() : strArray[2].Trim()))); }