/// <summary> /// Overrides brush colors in one step. /// </summary> /// <param name="styleSet"></param> /// <param name="resourceId"></param> /// <param name="color"></param> public static void OverrideBrushColor(this StyleSet styleSet, StyleSetResourceId resourceId, Color color) { var settings = styleSet.GetOverriddenBrushSettings(resourceId) ?? new BrushSettings(); settings.Color = color; styleSet.OverrideBrush(resourceId, settings); }