internal Color GetBorderColor(Style style, StyleInstance styleInstance, bool hasScope) { if (style != null) { Border border = style.Border; if (border != null && (!MappingHelper.IsPropertyExpression(border.Color) || hasScope)) { return(MappingHelper.GetStyleBorderColor(border)); } } return(MappingHelper.DefaultBorderColor); }