public Color GetTextColor(Style style, StyleInstance styleInstance, bool hasScope) { if (style != null && (!MappingHelper.IsPropertyExpression(style.Color) || hasScope)) { return(MappingHelper.GetStyleColor(style, styleInstance)); } return(MappingHelper.DefaultColor); }