187 references to SolidColorBrush
PresentationCore (8)
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1757foregroundBrush = new SolidColorBrush(Color.FromArgb(
System\Windows\Ink\Stroke2.cs (2)
400SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color); 438SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
66SolidColorBrush brush = new SolidColorBrush(color);
System\Windows\Media\Knowncolors.cs (1)
217scp = new SolidColorBrush(Color.FromUInt32(argb));
System\Windows\Media\Parsers.cs (3)
273return (new SolidColorBrush(ParseHexColor(trimmedColor))); 278return (new SolidColorBrush(ParseContextColor(trimmedColor, formatProvider, context))); 283return (new SolidColorBrush(ParseScRgbColor(trimmedColor, formatProvider)));
PresentationFramework (22)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1188return new SolidColorBrush(_activeOwners[0].SelectedBackground); 1191return _owners.Count > 0 ? new SolidColorBrush(_owners[0].Background) : null;
MS\Internal\Annotations\Component\HighlightComponent.cs (3)
259HighlightBrush = new SolidColorBrush(_background); 347HighlightBrush = new SolidColorBrush(_selectedBackground); 349HighlightBrush = new SolidColorBrush(_background);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
561MarkerBrush = new SolidColorBrush(DefaultMarkerColor); 569MarkerBrush = new SolidColorBrush(DefaultActiveMarkerColor);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
48_adornerPenBrush = new Pen(new SolidColorBrush(Color.FromRgb(132, 146, 222)), 1);
MS\Internal\Documents\TextBoxView.cs (1)
540context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
MS\Internal\Ink\LassoHelper.cs (2)
304_brush = new SolidColorBrush(DotColor); 311_pen = new Pen(new SolidColorBrush(DotCircumferenceColor), DotCircumferenceThickness);
MS\Internal\Ink\PenCursorManager.cs (1)
452SolidColorBrush brush2 = new SolidColorBrush(Color.FromRgb(180, 207, 248));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1160border.SetValue(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1935Brush selectionBrush = new SolidColorBrush(SystemColors.HighlightColor); 1945Brush selectionTextBrush = new SolidColorBrush(SystemColors.HighlightTextColor);
System\Windows\Documents\ColumnResizeAdorner.cs (1)
44_pen = new Pen(new SolidColorBrush(Colors.LightSlateGray), 2.0);
System\Windows\Documents\CompositionAdorner.cs (2)
185Pen pen = new Pen(new SolidColorBrush(Colors.Black), lineHeight); 249pen.Brush = new SolidColorBrush(compositionLine.LineColor);
System\windows\Documents\SelectionHighlightInfo.cs (1)
29_objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor);
System\windows\Documents\TextSelection.cs (1)
1663caretBrush = new SolidColorBrush(Color.FromRgb(r, g, b));
System\Windows\SystemColors.cs (1)
1822brush = new SolidColorBrush(GetSystemColor(slot));
System\Windows\SystemParameters.cs (1)
5695var glassBrush = new SolidColorBrush(WindowGlassColor);
PresentationFramework.Aero (32)
Microsoft\Windows\Themes\BulletChrome.cs (13)
913temp.Brush = new SolidColorBrush(Colors.White); 937temp.Brush = new SolidColorBrush(Colors.White); 960temp.Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)); 983temp.Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)); 1132SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1152SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1174SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1318SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1338SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1358SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1380temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 1402temp.Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)); 1424temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5));
Microsoft\Windows\Themes\ButtonChrome.cs (5)
754SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 817temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 839temp.Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)); 862temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)); 964temp.Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
211sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 288bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 292bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 296bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
515SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 608temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
1083temp.Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)); 1107temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 1131temp.Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)); 1210temp.Brush = new SolidColorBrush(Colors.White); 1281temp.Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)); 1731SolidColorBrush temp = new SolidColorBrush(Colors.White); 1768_localResources.GlyphShadow = new SolidColorBrush(Colors.White);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Aero2 (32)
Microsoft\Windows\Themes\BulletChrome.cs (13)
913temp.Brush = new SolidColorBrush(Colors.White); 937temp.Brush = new SolidColorBrush(Colors.White); 960temp.Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)); 983temp.Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)); 1132SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1152SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1174SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1318SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1338SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1358SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1380temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 1402temp.Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)); 1424temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5));
Microsoft\Windows\Themes\ButtonChrome.cs (5)
754SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 817temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 839temp.Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)); 862temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)); 964temp.Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
211sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 288bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 292bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 296bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
515SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 608temp.Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
1083temp.Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)); 1107temp.Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)); 1131temp.Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)); 1210temp.Brush = new SolidColorBrush(Colors.White); 1281temp.Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)); 1731SolidColorBrush temp = new SolidColorBrush(Colors.White); 1768_localResources.GlyphShadow = new SolidColorBrush(Colors.White);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
PresentationFramework.AeroLite (12)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
132sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xE1)); 136sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x4F, 0x90, 0xAE)); 140sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3)); 232arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
287SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xDD, 0xDD, 0xDD)); 307SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 327SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 375temp.Brush = new SolidColorBrush(Color.FromRgb(0xA3, 0xA3, 0xA3)); 399temp.Brush = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0xC4)); 423temp.Brush = new SolidColorBrush(Color.FromRgb(0x00, 0x73, 0x94)); 469SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
432decorator._brushCache.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor)); 435decorator._brushCache.DarkBrush = new SolidColorBrush(darkColor); 444decorator._brushCache.DarkDarkBrush = new SolidColorBrush(darkDarkColor);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Fluent (1)
Controls\FallbackBrushConverter.cs (1)
23return new SolidColorBrush(color);
PresentationFramework.Luna (49)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
560SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC7, 0xBA)); 584SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xCA, 0xC4, 0xB8)); 609SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC4, 0xC3, 0xBF)); 1266SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF5, 0xF4, 0xEA)); 1287SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF6, 0xF2, 0xE9)); 1308SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF1, 0xF1, 0xED));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
204SolidColorBrush tabStrokeBrush = new SolidColorBrush((themeColor == ThemeColor.Homestead) ? Color.FromArgb(0xFF, 0xCF, 0x72, 0x25) : Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 247border = new SolidColorBrush((themeColor == ThemeColor.Metallic) ? Color.FromArgb(0xFF, 0x80, 0x80, 0x99) : Color.FromArgb(0xFF, 0xA5, 0xA5, 0x97)); 355arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (35)
1384SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC9, 0xC2)); 1405SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x4D, 0x61, 0x85)); 1434SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x3F, 0x3D, 0x3D)); 1455SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x20, 0x20, 0x20)); 1476SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEE, 0xF4, 0xFE)); 1497SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFC, 0xFD, 0xFF)); 1518SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xCF, 0xDD, 0xFD)); 1539SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0xDF, 0xAC)); 1560SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEB, 0xF5, 0xD4)); 1581SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xD0, 0x97)); 1602SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1678SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 1699SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0xB0, 0xF8)); 1720SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x9C, 0xC5, 0xFF)); 1741SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x9E, 0xD8)); 1762SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0x9D, 0x73)); 1783SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB6, 0xC6, 0x8E)); 1804SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)); 1825SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x95, 0xA2)); 1888temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1910temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1932temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x94, 0x95, 0xA2)); 1954temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x66, 0x65)); 1976temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x43, 0x48, 0x48)); 2033temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xE8, 0xE8, 0xDF)); 2055temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xB4, 0xC8, 0xF6)); 2079temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x98, 0xB1, 0xE4)); 2101temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xCE, 0xFF)); 2123temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x8F, 0xDA)); 2145temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x99, 0x7D)); 2167temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xCB, 0x96)); 2190temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)); 2212temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 2234temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 2257temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
546SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 566SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 645SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 840SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Royale (18)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
475SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF,0xC6,0xC5,0xC9));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
133SolidColorBrush tabStrokeBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 169border = new SolidColorBrush(Color.FromArgb(0xFF, 0x80, 0x80, 0x99)); 277arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (9)
833SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB7, 0xCB, 0xE3)); 855SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x64, 0x73)); 876SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x6B, 0x7B, 0x84)); 897SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 944SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 965SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x97, 0xAF)); 1034temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x85, 0x99, 0xB1)); 1056temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x52, 0x66, 0x7E)); 1094temp.Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
546SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 566SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 645SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 840SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
331brushes[Center] = new SolidColorBrush(c);
ReachFramework (9)
AlphaFlattener\BrushProxy.cs (9)
1454context.PushOpacityMask(new SolidColorBrush(_beforeDrawing)); 1471context.PushOpacityMask(new SolidColorBrush(_afterDrawing)); 1525context.DrawGeometry(new SolidColorBrush(_beforeDrawing), null, geometry); 1590context.DrawGeometry(new SolidColorBrush(_afterDrawing), null, geometry); 2725return CreateBrushCore(new SolidColorBrush(color), Rect.Empty); 2976Brush b = new SolidColorBrush(c); 3515s_EmptyBrush = new BrushProxy(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0))); 3604ctx.DrawRectangle(new SolidColorBrush(brush.BeforeFill), null, rect); 3611ctx.DrawRectangle(new SolidColorBrush(brush.AfterFill), null, rect);