static Color GetColorBackground(dntheme.ColorType colorType) { return dntheme.Themes.Theme.GetColor(colorType).InheritedColor.Background.GetColor(null).Value; }
static Color GetColorBackground(dntheme.ColorType colorType) { var c = dntheme.Themes.Theme.GetColor(colorType).InheritedColor.Background.GetColor(null); Debug.WriteLineIf(c == null, string.Format("Background color is null: {0}", colorType)); return c.Value; }