internal Color GetBackgroundColor(Style style, StyleInstance styleInstance, bool hasScope) { if (style == null) { return(MappingHelper.DefaultBackgroundColor); } if (!MappingHelper.IsPropertyExpression(style.BackgroundColor) || hasScope) { return(MappingHelper.GetStyleBackgroundColor(style, styleInstance)); } return(MappingHelper.DefaultBackgroundColor); }