Пример #1
0
 public Color GetBackgroundColor(Style style, StyleInstance styleInstance, bool hasScope)
 {
     if (style == null)
     {
         return(MappingHelper.DefaultBackgroundColor);
     }
     if (MappingHelper.IsPropertyExpression(style.BackgroundColor) && !hasScope)
     {
         return(MappingHelper.DefaultBackgroundColor);
     }
     return(MappingHelper.GetStyleBackgroundColor(style, styleInstance));
 }