288 instantiations of SolidColorBrush
Microsoft.CodeAnalysis.EditorFeatures.Wpf (11)
Adornments\BrushTag.cs (1)
32=> _brush ??= new SolidColorBrush(this.GetColor(view, _editorFormatMap) ?? s_lightGray);
InlineDiagnostics\InlineDiagnosticsFormatDefinition.cs (5)
37BackgroundBrush = new SolidColorBrush(Color.FromRgb(252, 62, 54)); 38ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)); 57BackgroundBrush = new SolidColorBrush(Color.FromRgb(149, 219, 125)); 58ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)); 78ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0));
InlineHints\InlineHintsFormatDefinition.cs (2)
35this.ForegroundBrush = new SolidColorBrush(Color.FromRgb(104, 104, 104)); 36this.BackgroundBrush = new SolidColorBrush(Color.FromRgb(230, 230, 230));
InlineRename\HighlightTags\RenameFieldBackgroundAndBorderTagDefinition.cs (1)
27this.Border = new Pen(new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0xFF)), thickness: 2.0);
PreviewWarningTagDefinition.cs (1)
27this.Border = new Pen(new SolidColorBrush(Color.FromRgb(230, 117, 64)), thickness: 1.5);
ReferenceHighlighting\DefinitionHighlightTagDefinition.cs (1)
27this.Border = new Pen(new SolidColorBrush(Colors.Gray), 0.5);
Microsoft.VisualStudio.LanguageServices (6)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
63ParameterText = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0x1E, 0x1E, 0x1E)); 64RemovedParameterText = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(Colors.Gray); 65DisabledParameterBackground = SystemParameters.HighContrast ? SystemColors.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xDF, 0xE7, 0xF3)); 66DisabledParameterForeground = SystemParameters.HighContrast ? SystemColors.GrayTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xA2, 0xA4, 0xA5)); 67Members.Background = SystemParameters.HighContrast ? SystemColors.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 68StrikethroughBrush = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(Colors.Red);
PresentationCore (9)
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1745foregroundBrush = new SolidColorBrush(Color.FromArgb(
System\Windows\Ink\Stroke2.cs (2)
384SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color); 422SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
51SolidColorBrush brush = new SolidColorBrush(color);
System\Windows\Media\Generated\SolidColorBrush.cs (1)
108return new SolidColorBrush();
System\Windows\Media\Knowncolors.cs (1)
215scp = new SolidColorBrush(Color.FromUInt32(argb));
System\Windows\Media\Parsers.cs (3)
258return (new SolidColorBrush(ParseHexColor(trimmedColor))); 263return (new SolidColorBrush(ParseContextColor(trimmedColor, formatProvider, context))); 268return (new SolidColorBrush(ParseScRgbColor(trimmedColor, formatProvider)));
PresentationCore.Tests (73)
System\Windows\Media\Generated\BrushConverter.Tests.cs (73)
128yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.0f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 131yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 134yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 0.7f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 155yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1,1,0,0" }; // Fully opaque red 156yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0f, 1f, 0f)), "sc#1,0,1,0" }; // Fully opaque green 157yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0f, 0f, 1f)), "sc#1,0,0,1" }; // Fully opaque blue 158yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.5f, 1f, 1f, 0f)), "sc#0.5,1,1,0" }; // Semi-transparent yellow 159yield return new object[] { new SolidColorBrush(Color.FromScRgb(0f, 0f, 0f, 0f)), "sc#0,0,0,0" }; // Fully transparent black 160yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0.5f, 0.5f, 0.5f)), "sc#1,0.5,0.5,0.5" }; // Fully opaque gray 161yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f)), "sc#0.75,0.5,0,0.5" }; // Semi-transparent purple 163yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1, 1, 0, 0" }; // Extra space after commas 164yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), " sc#1,1,0,0" }; // Leading space 165yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1,1,0,0 " }; // Trailing space 166yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), " sc#1,1,0,0 " }; // Excessive surrounding whitespace 167yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.9f, 0.8f, 0.7f, 0.6f)), "sc#0.9,0.8,0.7,0.6" }; // Non-integer values 168yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0.12345f, 0.6789f, 0.54321f)), "sc#1,0.12345,0.6789,0.54321" }; // Values with extended precision 169yield return new object[] { new SolidColorBrush(Color.FromScRgb(0f, 1f, 0f, 0f)), "sc#0 ,1 ,0 ,0" }; // Spaces directly around commas 170yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.5f, 0.5f, 0.5f, 0.5f)), "sc# .5 , .5 , .5 , .5" }; // Leading decimals with spaces 171yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f)), "sc#0.75,0.50,0.00,0.50" }; // Explicit zero padding 192yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x00, 0x00)), "#000" }; 193yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0xFF)), "#FfF" }; 194yield return new object[] { new SolidColorBrush(Color.FromRgb(0x11, 0x22, 0x33)), "#123" }; 195yield return new object[] { new SolidColorBrush(Color.FromRgb(0x44, 0x55, 0x66)), "#456" }; 196yield return new object[] { new SolidColorBrush(Color.FromRgb(0x77, 0x88, 0x99)), "#789" }; 197yield return new object[] { new SolidColorBrush(Color.FromRgb(0xAA, 0xBB, 0xCC)), "#ABC" }; 198yield return new object[] { new SolidColorBrush(Color.FromRgb(0xDD, 0xEE, 0xFF)), "#DEF" }; 199yield return new object[] { new SolidColorBrush(Color.FromRgb(0x11, 0x33, 0x55)), "#135" }; 200yield return new object[] { new SolidColorBrush(Color.FromRgb(0x22, 0x44, 0x66)), "#246" }; 201yield return new object[] { new SolidColorBrush(Color.FromRgb(0x33, 0x55, 0x77)), "#357" }; 202yield return new object[] { new SolidColorBrush(Color.FromRgb(0x44, 0x66, 0x88)), "#468" }; 203yield return new object[] { new SolidColorBrush(Color.FromRgb(0x55, 0x77, 0x99)), "#579" }; 204yield return new object[] { new SolidColorBrush(Color.FromRgb(0x66, 0x88, 0xAA)), "#68A" }; 205yield return new object[] { new SolidColorBrush(Color.FromRgb(0x77, 0x99, 0xBB)), "#79B" }; 206yield return new object[] { new SolidColorBrush(Color.FromRgb(0x88, 0xAA, 0xCC)), "#8AC" }; 207yield return new object[] { new SolidColorBrush(Color.FromRgb(0x99, 0xBB, 0xDD)), "#9BD" }; 208yield return new object[] { new SolidColorBrush(Color.FromRgb(0xCC, 0xBB, 0xAA)), "#CBA" }; 209yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xEE, 0xDD)), " #FED" }; 210yield return new object[] { new SolidColorBrush(Color.FromRgb(0x88, 0x99, 0xAA)), "#89A " }; 211yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x77, 0xFF)), " #07F " }; 231yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAA, 0xFF, 0x22, 0x55)), "#AF25" }; 232yield return new object[] { new SolidColorBrush(Color.FromArgb(0x11, 0x22, 0x33, 0x44)), "#1234" }; 233yield return new object[] { new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0xFF)), "#F00F" }; 234yield return new object[] { new SolidColorBrush(Color.FromArgb(0xCC, 0x33, 0x66, 0xFF)), "#C36f" }; 235yield return new object[] { new SolidColorBrush(Color.FromArgb(0x77, 0x88, 0x99, 0xAA)), "#789A" }; 236yield return new object[] { new SolidColorBrush(Color.FromArgb(0x77, 0x33, 0x66, 0x22)), " #7362" }; 237yield return new object[] { new SolidColorBrush(Color.FromArgb(0x66, 0x88, 0x99, 0x33)), "#6893 " }; 238yield return new object[] { new SolidColorBrush(Color.FromArgb(0xEE, 0xDD, 0xCC, 0xBB)), " #EDCB " }; 258yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x34, 0x56)), "#123456" }; 259yield return new object[] { new SolidColorBrush(Color.FromRgb(0xAA, 0xBB, 0xCC)), "#AABBCC" }; 260yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0x00, 0x00)), "#FF0000" }; 261yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0xFF, 0x00)), "#00FF00" }; 262yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x00, 0xFF)), "#0000FF" }; 263yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0x00)), "#FFFF00" }; 264yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0xFF, 0xFF)), "#00FFFF" }; 265yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0x00, 0xFF)), "#FF00FF" }; 266yield return new object[] { new SolidColorBrush(Color.FromRgb(0xC0, 0xC0, 0xC0)), "#C0C0C0" }; 267yield return new object[] { new SolidColorBrush(Color.FromRgb(0x80, 0x80, 0x80)), "#808080" }; 268yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x12, 0x12)), "#121212" }; 269yield return new object[] { new SolidColorBrush(Color.FromRgb(0x34, 0x56, 0x78)), "#345678" }; 270yield return new object[] { new SolidColorBrush(Color.FromRgb(0x90, 0xAB, 0xCD)), "#90ABCD" }; 271yield return new object[] { new SolidColorBrush(Color.FromRgb(0xDE, 0xAD, 0xBE)), "#DEADBE" }; 273yield return new object[] { new SolidColorBrush(Color.FromRgb(0xEF, 0xBE, 0xAD)), "#eFBEAD" }; 274yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x34, 0xFF)), "#1234ff" }; 275yield return new object[] { new SolidColorBrush(Color.FromRgb(0x56, 0x78, 0x9A)), "#56789a" }; 277yield return new object[] { new SolidColorBrush(Color.FromRgb(0xBC, 0xDE, 0xF0)), " #BCDEF0" }; 278yield return new object[] { new SolidColorBrush(Color.FromRgb(0x01, 0x23, 0x45)), " #012345 " }; 279yield return new object[] { new SolidColorBrush(Color.FromRgb(0x67, 0x89, 0xAB)), "#6789AB " }; 305yield return new object[] { new SolidColorBrush(Color.FromArgb(0x25, 0x37, 0x64, 0x88)), "#25376488" }; 306yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAF, 0x25, 0x46, 0xCC)), "#AF2546CC" }; 309yield return new object[] { new SolidColorBrush(Color.FromArgb(0x44, 0x37, 0x64, 0x88)), " #44376488" }; 310yield return new object[] { new SolidColorBrush(Color.FromArgb(0x35, 0x25, 0x46, 0xCC)), " #352546CC " }; 311yield return new object[] { new SolidColorBrush(Color.FromArgb(0x25, 0x37, 0x14, 0x25)), " #25371425 " }; 312yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAF, 0x25, 0x46, 0x22)), "#AF254622 " };
PresentationFramework (26)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1177return new SolidColorBrush(_activeOwners[0].SelectedBackground); 1180return _owners.Count > 0 ? new SolidColorBrush(_owners[0].Background) : null;
MS\Internal\Annotations\Component\HighlightComponent.cs (3)
250HighlightBrush = new SolidColorBrush(_background); 338HighlightBrush = new SolidColorBrush(_selectedBackground); 340HighlightBrush = new SolidColorBrush(_background);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
553MarkerBrush = new SolidColorBrush(DefaultMarkerColor); 560MarkerBrush = new SolidColorBrush(DefaultActiveMarkerColor);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
40_adornerPenBrush = new Pen(new SolidColorBrush(Color.FromRgb(132, 146, 222)), 1);
MS\Internal\Documents\TextBoxView.cs (1)
495context.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)
295_brush = new SolidColorBrush(DotColor); 302_pen = new Pen(new SolidColorBrush(DotCircumferenceColor), DotCircumferenceThickness)
MS\Internal\Ink\PenCursorManager.cs (1)
444SolidColorBrush brush2 = new SolidColorBrush(Color.FromRgb(180, 207, 248));
MS\Internal\PtsHost\MbpInfo.cs (1)
91_borderBrush = new SolidColorBrush();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1159border.SetValue(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1858Brush selectionBrush = new SolidColorBrush(SystemColors.HighlightColor); 1868Brush selectionTextBrush = new SolidColorBrush(SystemColors.HighlightTextColor);
System\Windows\Documents\ColumnResizeAdorner.cs (1)
35_pen = new Pen(new SolidColorBrush(Colors.LightSlateGray), 2.0);
System\Windows\Documents\CompositionAdorner.cs (2)
181Pen pen = new Pen(new SolidColorBrush(Colors.Black), lineHeight); 245pen.Brush = new SolidColorBrush(compositionLine.LineColor);
System\windows\Documents\SelectionHighlightInfo.cs (1)
28_objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor)
System\windows\Documents\TextSelection.cs (1)
1644caretBrush = new SolidColorBrush(Color.FromRgb(r, g, b));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10102DefaultConstructor = delegate () { return new System.Windows.Media.SolidColorBrush(); },
System\Windows\Markup\KnownTypes.cs (1)
1535case KnownElements.SolidColorBrush: o = new System.Windows.Media.SolidColorBrush(); break;
System\Windows\SystemColors.cs (2)
2316brush = new SolidColorBrush(GetSystemColor(slot)); 2338brush = new SolidColorBrush(GetAccentColor(slot));
System\Windows\SystemParameters.cs (1)
5676var glassBrush = new SolidColorBrush(WindowGlassColor);
PresentationFramework.Aero (32)
Microsoft\Windows\Themes\BulletChrome.cs (13)
923Brush = new SolidColorBrush(Colors.White) 949Brush = new SolidColorBrush(Colors.White) 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ButtonChrome.cs (5)
757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF))
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
213sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 294bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 298bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 302bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (7)
1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1241Brush = new SolidColorBrush(Colors.White) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)) 1791SolidColorBrush temp = new SolidColorBrush(Colors.White) 1830_localResources.GlyphShadow = new SolidColorBrush(Colors.White);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Aero2 (32)
Microsoft\Windows\Themes\BulletChrome.cs (13)
923Brush = new SolidColorBrush(Colors.White) 949Brush = new SolidColorBrush(Colors.White) 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ButtonChrome.cs (5)
757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF))
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
213sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 294bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 298bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 302bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (7)
1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1241Brush = new SolidColorBrush(Colors.White) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)) 1791SolidColorBrush temp = new SolidColorBrush(Colors.White) 1830_localResources.GlyphShadow = new SolidColorBrush(Colors.White);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.AeroLite (13)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
76background = new SolidColorBrush(); 128sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xE1)); 132sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x4F, 0x90, 0xAE)); 136sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3)); 228arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
280SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xDD, 0xDD, 0xDD)); 300SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 320SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 369Brush = new SolidColorBrush(Color.FromRgb(0xA3, 0xA3, 0xA3)) 395Brush = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0xC4)) 421Brush = new SolidColorBrush(Color.FromRgb(0x00, 0x73, 0x94)) 468SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Classic (5)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (4)
428decorator._brushCache.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor)); 431decorator._brushCache.DarkBrush = new SolidColorBrush(darkColor); 442decorator._brushCache.DarkDarkBrush = new SolidColorBrush(darkDarkColor); 518SolidColorBrush temp = new SolidColorBrush();
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Fluent (1)
Controls\FallbackBrushConverter.cs (1)
22return new SolidColorBrush(color);
PresentationFramework.Luna (49)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
554SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC7, 0xBA)); 578SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xCA, 0xC4, 0xB8)); 603SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC4, 0xC3, 0xBF)); 1292SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF5, 0xF4, 0xEA)); 1313SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF6, 0xF2, 0xE9)); 1334SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF1, 0xF1, 0xED));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
203SolidColorBrush tabStrokeBrush = new SolidColorBrush((themeColor == ThemeColor.Homestead) ? Color.FromArgb(0xFF, 0xCF, 0x72, 0x25) : Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 248border = new SolidColorBrush((themeColor == ThemeColor.Metallic) ? Color.FromArgb(0xFF, 0x80, 0x80, 0x99) : Color.FromArgb(0xFF, 0xA5, 0xA5, 0x97)); 358arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (35)
1433SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC9, 0xC2)); 1454SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x4D, 0x61, 0x85)); 1483SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x3F, 0x3D, 0x3D)); 1504SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x20, 0x20, 0x20)); 1525SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEE, 0xF4, 0xFE)); 1546SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFC, 0xFD, 0xFF)); 1567SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xCF, 0xDD, 0xFD)); 1588SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0xDF, 0xAC)); 1609SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEB, 0xF5, 0xD4)); 1630SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xD0, 0x97)); 1651SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1727SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 1748SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0xB0, 0xF8)); 1769SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x9C, 0xC5, 0xFF)); 1790SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x9E, 0xD8)); 1811SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0x9D, 0x73)); 1832SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB6, 0xC6, 0x8E)); 1853SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)); 1874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x95, 0xA2)); 1938Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1962Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1986Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x94, 0x95, 0xA2)) 2010Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x66, 0x65)) 2034Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x43, 0x48, 0x48)) 2093Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xE8, 0xE8, 0xDF)) 2117Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xB4, 0xC8, 0xF6)) 2143Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x98, 0xB1, 0xE4)) 2167Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xCE, 0xFF)) 2191Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x8F, 0xDA)) 2215Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x99, 0x7D)) 2239Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xCB, 0x96)) 2264Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)) 2288Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2312Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2337Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Royale (18)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
469SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF,0xC6,0xC5,0xC9));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
132SolidColorBrush tabStrokeBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 170border = new SolidColorBrush(Color.FromArgb(0xFF, 0x80, 0x80, 0x99)); 280arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (9)
852SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB7, 0xCB, 0xE3)); 874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x64, 0x73)); 895SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x6B, 0x7B, 0x84)); 916SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 963SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 984SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x97, 0xAF)); 1056Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x85, 0x99, 0xB1)) 1080Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x52, 0x66, 0x7E)) 1120Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
326brushes[Center] = new SolidColorBrush(c);
PresentationFramework.Tests (4)
System\Windows\ResourceDictionaryTests.cs (4)
110var brush = new SolidColorBrush(Colors.Green); 123var initialBrush = new SolidColorBrush(Colors.Green); 124var updatedBrush = new SolidColorBrush(Colors.Red); 145var initialBrush = new SolidColorBrush(Colors.Green);
ReachFramework (9)
AlphaFlattener\BrushProxy.cs (9)
1448context.PushOpacityMask(new SolidColorBrush(_beforeDrawing)); 1465context.PushOpacityMask(new SolidColorBrush(_afterDrawing)); 1519context.DrawGeometry(new SolidColorBrush(_beforeDrawing), null, geometry); 1584context.DrawGeometry(new SolidColorBrush(_afterDrawing), null, geometry); 2720return CreateBrushCore(new SolidColorBrush(color), Rect.Empty); 2971Brush b = new SolidColorBrush(c) 3512s_EmptyBrush = new BrushProxy(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0))); 3601ctx.DrawRectangle(new SolidColorBrush(brush.BeforeFill), null, rect); 3608ctx.DrawRectangle(new SolidColorBrush(brush.AfterFill), null, rect);
628 references to SolidColorBrush
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
LineSeparators\LineSeparatorTag.cs (2)
29var brush = view.VisualElement.TryFindResource("outlining.verticalrule.foreground") as SolidColorBrush;
StringIndentation\StringIndentationTag.cs (2)
36var brush = view.VisualElement.TryFindResource("outlining.verticalrule.foreground") as SolidColorBrush;
Utilities\BrushToColorConverter.cs (1)
17SolidColorBrush solidColorBrush => solidColorBrush.Color,
PresentationCore (166)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1742if(visiCodePath && foregroundBrush is SolidColorBrush) 1744Color color = ((SolidColorBrush)foregroundBrush).Color;
System\Windows\Ink\Stroke2.cs (2)
384SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color); 422SolidColorBrush brush = new SolidColorBrush(drawingAttributes.Color);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (4)
33private SolidColorBrush _fillBrush; // app thread based brushed 51SolidColorBrush brush = new SolidColorBrush(color); 101public SolidColorBrush FillBrush 824SolidColorBrush fillBrush = si.FillBrush;
System\Windows\Media\brushes.cs (141)
32public static SolidColorBrush AliceBlue 43public static SolidColorBrush AntiqueWhite 54public static SolidColorBrush Aqua 65public static SolidColorBrush Aquamarine 76public static SolidColorBrush Azure 87public static SolidColorBrush Beige 98public static SolidColorBrush Bisque 109public static SolidColorBrush Black 120public static SolidColorBrush BlanchedAlmond 131public static SolidColorBrush Blue 142public static SolidColorBrush BlueViolet 153public static SolidColorBrush Brown 164public static SolidColorBrush BurlyWood 175public static SolidColorBrush CadetBlue 186public static SolidColorBrush Chartreuse 197public static SolidColorBrush Chocolate 208public static SolidColorBrush Coral 219public static SolidColorBrush CornflowerBlue 230public static SolidColorBrush Cornsilk 241public static SolidColorBrush Crimson 252public static SolidColorBrush Cyan 263public static SolidColorBrush DarkBlue 274public static SolidColorBrush DarkCyan 285public static SolidColorBrush DarkGoldenrod 296public static SolidColorBrush DarkGray 307public static SolidColorBrush DarkGreen 318public static SolidColorBrush DarkKhaki 329public static SolidColorBrush DarkMagenta 340public static SolidColorBrush DarkOliveGreen 351public static SolidColorBrush DarkOrange 362public static SolidColorBrush DarkOrchid 373public static SolidColorBrush DarkRed 384public static SolidColorBrush DarkSalmon 395public static SolidColorBrush DarkSeaGreen 406public static SolidColorBrush DarkSlateBlue 417public static SolidColorBrush DarkSlateGray 428public static SolidColorBrush DarkTurquoise 439public static SolidColorBrush DarkViolet 450public static SolidColorBrush DeepPink 461public static SolidColorBrush DeepSkyBlue 472public static SolidColorBrush DimGray 483public static SolidColorBrush DodgerBlue 494public static SolidColorBrush Firebrick 505public static SolidColorBrush FloralWhite 516public static SolidColorBrush ForestGreen 527public static SolidColorBrush Fuchsia 538public static SolidColorBrush Gainsboro 549public static SolidColorBrush GhostWhite 560public static SolidColorBrush Gold 571public static SolidColorBrush Goldenrod 582public static SolidColorBrush Gray 593public static SolidColorBrush Green 604public static SolidColorBrush GreenYellow 615public static SolidColorBrush Honeydew 626public static SolidColorBrush HotPink 637public static SolidColorBrush IndianRed 648public static SolidColorBrush Indigo 659public static SolidColorBrush Ivory 670public static SolidColorBrush Khaki 681public static SolidColorBrush Lavender 692public static SolidColorBrush LavenderBlush 703public static SolidColorBrush LawnGreen 714public static SolidColorBrush LemonChiffon 725public static SolidColorBrush LightBlue 736public static SolidColorBrush LightCoral 747public static SolidColorBrush LightCyan 758public static SolidColorBrush LightGoldenrodYellow 769public static SolidColorBrush LightGray 780public static SolidColorBrush LightGreen 791public static SolidColorBrush LightPink 802public static SolidColorBrush LightSalmon 813public static SolidColorBrush LightSeaGreen 824public static SolidColorBrush LightSkyBlue 835public static SolidColorBrush LightSlateGray 846public static SolidColorBrush LightSteelBlue 857public static SolidColorBrush LightYellow 868public static SolidColorBrush Lime 879public static SolidColorBrush LimeGreen 890public static SolidColorBrush Linen 901public static SolidColorBrush Magenta 912public static SolidColorBrush Maroon 923public static SolidColorBrush MediumAquamarine 934public static SolidColorBrush MediumBlue 945public static SolidColorBrush MediumOrchid 956public static SolidColorBrush MediumPurple 967public static SolidColorBrush MediumSeaGreen 978public static SolidColorBrush MediumSlateBlue 989public static SolidColorBrush MediumSpringGreen 1000public static SolidColorBrush MediumTurquoise 1011public static SolidColorBrush MediumVioletRed 1022public static SolidColorBrush MidnightBlue 1033public static SolidColorBrush MintCream 1044public static SolidColorBrush MistyRose 1055public static SolidColorBrush Moccasin 1066public static SolidColorBrush NavajoWhite 1077public static SolidColorBrush Navy 1088public static SolidColorBrush OldLace 1099public static SolidColorBrush Olive 1110public static SolidColorBrush OliveDrab 1121public static SolidColorBrush Orange 1132public static SolidColorBrush OrangeRed 1143public static SolidColorBrush Orchid 1154public static SolidColorBrush PaleGoldenrod 1165public static SolidColorBrush PaleGreen 1176public static SolidColorBrush PaleTurquoise 1187public static SolidColorBrush PaleVioletRed 1198public static SolidColorBrush PapayaWhip 1209public static SolidColorBrush PeachPuff 1220public static SolidColorBrush Peru 1231public static SolidColorBrush Pink 1242public static SolidColorBrush Plum 1253public static SolidColorBrush PowderBlue 1264public static SolidColorBrush Purple 1275public static SolidColorBrush Red 1286public static SolidColorBrush RosyBrown 1297public static SolidColorBrush RoyalBlue 1308public static SolidColorBrush SaddleBrown 1319public static SolidColorBrush Salmon 1330public static SolidColorBrush SandyBrown 1341public static SolidColorBrush SeaGreen 1352public static SolidColorBrush SeaShell 1363public static SolidColorBrush Sienna 1374public static SolidColorBrush Silver 1385public static SolidColorBrush SkyBlue 1396public static SolidColorBrush SlateBlue 1407public static SolidColorBrush SlateGray 1418public static SolidColorBrush Snow 1429public static SolidColorBrush SpringGreen 1440public static SolidColorBrush SteelBlue 1451public static SolidColorBrush Tan 1462public static SolidColorBrush Teal 1473public static SolidColorBrush Thistle 1484public static SolidColorBrush Tomato 1495public static SolidColorBrush Transparent 1506public static SolidColorBrush Turquoise 1517public static SolidColorBrush Violet 1528public static SolidColorBrush Wheat 1539public static SolidColorBrush White 1550public static SolidColorBrush WhiteSmoke 1561public static SolidColorBrush Yellow 1572public static SolidColorBrush YellowGreen
System\Windows\Media\Generated\SolidColorBrush.cs (7)
41public new SolidColorBrush Clone() 43return (SolidColorBrush)base.Clone(); 50public new SolidColorBrush CloneCurrentValue() 52return (SolidColorBrush)base.CloneCurrentValue(); 68SolidColorBrush target = ((SolidColorBrush) d); 322Type typeofThis = typeof(SolidColorBrush);
System\Windows\Media\Knowncolors.cs (6)
182public static SolidColorBrush ColorStringToKnownBrush(string s) 198public static bool IsKnownSolidColorBrush(SolidColorBrush scp) 206public static SolidColorBrush SolidColorBrushFromUint(uint argb) 208SolidColorBrush scp = null; 833private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>();
System\Windows\Media\Parsers.cs (1)
273SolidColorBrush scp = KnownColors.ColorStringToKnownBrush(trimmedColor);
System\Windows\Media\SolidColorBrush.cs (3)
134SolidColorBrush scp = KnownColors.SolidColorBrushFromUint(knownColorUint); 308private static TwoWayDictionary<SolidColorBrush, string> s_knownSolidColorBrushStringCache = new TwoWayDictionary<SolidColorBrush, string>(keyComparer: ReferenceEqualityComparer.Instance);
PresentationCore.Tests (22)
System\Windows\Media\Generated\BrushConverter.Tests.cs (22)
51public void ConvertFrom_NamedBrush_ReturnsExpectedBrush(SolidColorBrush expectedColor, string colorName) 57Assert.IsType<SolidColorBrush>(result); 58Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 108public void ConvertFrom_ContextColor_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 114Assert.IsType<SolidColorBrush>(result); 115Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 141public void ConvertFrom_ScRGB_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 147Assert.IsType<SolidColorBrush>(result); 148Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 178public void ConvertFrom_RGB_Short_HexColor_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 184Assert.IsType<SolidColorBrush>(result); 185Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 217public void ConvertFrom_ARGB_Short_HexColor_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 223Assert.IsType<SolidColorBrush>(result); 224Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 244public void ConvertFrom_RGB_Long_HexColor_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 250Assert.IsType<SolidColorBrush>(result); 251Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 285public void ConvertFrom_ARGB_Long_HexColor_ReturnsExpectedBrush(SolidColorBrush expectedColor, string hexColor) 291Assert.IsType<SolidColorBrush>(result); 292Assert.Equal(expectedColor.ToString(), ((SolidColorBrush)result).ToString()); 341[InlineData(typeof(SolidColorBrush))]
PresentationFramework (82)
MS\Internal\Ink\PenCursorManager.cs (1)
444SolidColorBrush brush2 = new SolidColorBrush(Color.FromRgb(180, 207, 248));
System\Windows\Annotations\AnnotationHelper.cs (2)
926SolidColorBrush brush = highlightBrush as SolidColorBrush;
System\Windows\Controls\Border.cs (2)
289SolidColorBrush originIndependentBrush = borderBrush as SolidColorBrush;
System\Windows\Controls\ProgressBar.cs (2)
185if (this.Foreground is SolidColorBrush) 187Color color = ((SolidColorBrush)this.Foreground).Color;
System\Windows\Controls\StickyNote.cs (2)
1742SolidColorBrush foreground = Foreground as SolidColorBrush;
System\Windows\Controls\TextRangeAdaptor.cs (2)
1256SolidColorBrush solidBrush = brush as SolidColorBrush;
System\Windows\Documents\FixedSOMTextRun.cs (4)
215SolidColorBrush thisBrush = this.Foreground as SolidColorBrush; 216SolidColorBrush otherBrush = run.Foreground as SolidColorBrush;
System\Windows\Documents\TextSchema.cs (3)
910SolidColorBrush solidBrush1 = brush1 as SolidColorBrush; 913return solidBrush1.Color.Equals(((SolidColorBrush)brush2).Color);
System\windows\Documents\TextSelection.cs (4)
1616backgroundPropertyValue is SolidColorBrush) 1618backgroundColor = ((SolidColorBrush)backgroundPropertyValue).Color; 1632if (backgroundPropertyValue is SolidColorBrush) 1634backgroundColor = ((SolidColorBrush)backgroundPropertyValue).Color;
System\Windows\Documents\TextServicesDisplayAttribute.cs (1)
98return ((SolidColorBrush)position.GetValue(TextElement.ForegroundProperty)).Color;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
671case 578: t = () => typeof(SolidColorBrush); break;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
2520System.Windows.Media.SolidColorBrush brush = System.Windows.Media.SolidColorBrush.DeserializeFrom(binReader) as System.Windows.Media.SolidColorBrush;
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
37return System.Windows.Media.SolidColorBrush.DeserializeFrom(_reader,
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
8502Type type = typeof(System.Windows.Media.SolidColorBrush); 8503DependencyProperty dp = System.Windows.Media.SolidColorBrush.ColorProperty; 8505this.GetXamlType(typeof(System.Windows.Media.SolidColorBrush)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10099typeof(System.Windows.Media.SolidColorBrush),
System\Windows\Markup\BamlRecords.cs (1)
2766_valueObject = SolidColorBrush.DeserializeFrom(reader, bamlRecordReader.TypeConvertContext);
System\Windows\Markup\KnownTypes.cs (1)
6125case KnownElements.SolidColorBrush: t = typeof(System.Windows.Media.SolidColorBrush); break;
System\Windows\Markup\XamlBrushSerializer.cs (2)
67return SolidColorBrush.SerializeOn(writer, stringValue.Trim()); 90return SolidColorBrush.DeserializeFrom(reader);
System\Windows\SystemColors.cs (45)
1034public static SolidColorBrush ActiveBorderBrush 1045public static SolidColorBrush ActiveCaptionBrush 1056public static SolidColorBrush ActiveCaptionTextBrush 1067public static SolidColorBrush AppWorkspaceBrush 1078public static SolidColorBrush ControlBrush 1089public static SolidColorBrush ControlDarkBrush 1100public static SolidColorBrush ControlDarkDarkBrush 1111public static SolidColorBrush ControlLightBrush 1122public static SolidColorBrush ControlLightLightBrush 1133public static SolidColorBrush ControlTextBrush 1144public static SolidColorBrush DesktopBrush 1155public static SolidColorBrush GradientActiveCaptionBrush 1166public static SolidColorBrush GradientInactiveCaptionBrush 1177public static SolidColorBrush GrayTextBrush 1188public static SolidColorBrush HighlightBrush 1199public static SolidColorBrush HighlightTextBrush 1210public static SolidColorBrush HotTrackBrush 1221public static SolidColorBrush InactiveBorderBrush 1232public static SolidColorBrush InactiveCaptionBrush 1243public static SolidColorBrush InactiveCaptionTextBrush 1254public static SolidColorBrush InfoBrush 1265public static SolidColorBrush InfoTextBrush 1276public static SolidColorBrush MenuBrush 1287public static SolidColorBrush MenuBarBrush 1298public static SolidColorBrush MenuHighlightBrush 1309public static SolidColorBrush MenuTextBrush 1320public static SolidColorBrush ScrollBarBrush 1331public static SolidColorBrush WindowBrush 1342public static SolidColorBrush WindowFrameBrush 1353public static SolidColorBrush WindowTextBrush 1367public static SolidColorBrush InactiveSelectionHighlightBrush 1388public static SolidColorBrush InactiveSelectionHighlightTextBrush 1410public static SolidColorBrush AccentColorBrush 1431public static SolidColorBrush AccentColorLight1Brush 1452public static SolidColorBrush AccentColorLight2Brush 1473public static SolidColorBrush AccentColorLight3Brush 1494public static SolidColorBrush AccentColorDark1Brush 1515public static SolidColorBrush AccentColorDark2Brush 1536public static SolidColorBrush AccentColorDark3Brush 2305private static SolidColorBrush MakeBrush(CacheSlot slot) 2307SolidColorBrush brush; 2328private static SolidColorBrush MakeAccentBrush(CacheSlot slot) 2330SolidColorBrush brush; 2467private static SolidColorBrush[] _brushCache = new SolidColorBrush[(int)CacheSlot.NumSlots];
System\Windows\SystemParameters.cs (1)
5676var glassBrush = new SolidColorBrush(WindowGlassColor);
PresentationFramework.Aero (64)
Microsoft\Windows\Themes\BulletChrome.cs (31)
127chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 128chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 178chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 179chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 186chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 187chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.ColorProperty, ca); 271chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 272chrome.GlyphFill.BeginAnimation(SolidColorBrush.OpacityProperty, da); 347chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 350chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.ColorProperty, ca); 530chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 531chrome.GlyphFill.BeginAnimation(SolidColorBrush.OpacityProperty, da); 1153private static SolidColorBrush CommonCheckMarkDisabledFill 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1173private static SolidColorBrush CommonCheckMarkFill 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1195private static SolidColorBrush CommonCheckMarkPressedFill 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1345private static SolidColorBrush CommonHoverBackgroundOverlay 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1365private static SolidColorBrush CommonPressedBackgroundOverlay 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1385private static SolidColorBrush CommonDisabledBackgroundOverlay 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 2450private static SolidColorBrush _commonCheckMarkDisabledFill; 2451private static SolidColorBrush _commonCheckMarkFill; 2452private static SolidColorBrush _commonCheckMarkPressedFill; 2480private static SolidColorBrush _commonDisabledBackgroundOverlay; 2483private static SolidColorBrush _commonHoverBackgroundOverlay; 2489private static SolidColorBrush _commonPressedBackgroundOverlay; 2505public SolidColorBrush BackgroundOverlay;
Microsoft\Windows\Themes\ButtonChrome.cs (15)
132chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 152chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 212chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 241chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 252chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 253chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 303chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 304chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 323chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 344chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 345chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 352chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 747private static SolidColorBrush CommonDisabledBackgroundOverlay 757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1165private static SolidColorBrush _commonDisabledBackgroundOverlay;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
288SolidColorBrush bottomBrush = (SolidColorBrush)GetCachedFreezable((int)bottomType);
Microsoft\Windows\Themes\ListBoxChrome.cs (3)
499private static SolidColorBrush CommonDisabledBackgroundOverlay 509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 672private static SolidColorBrush _commonDisabledBackgroundOverlay;
Microsoft\Windows\Themes\ScrollChrome.cs (12)
122chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 128chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 164chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 166chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 231chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 252OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 329chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 1781private static SolidColorBrush CommonThumbEnabledGlyphShadow 1791SolidColorBrush temp = new SolidColorBrush(Colors.White) 1806private SolidColorBrush GlyphShadow 1850private static SolidColorBrush _commonThumbEnabledGlyphShadow; 1884public SolidColorBrush GlyphShadow;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.Aero2 (64)
Microsoft\Windows\Themes\BulletChrome.cs (31)
127chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 128chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 178chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 179chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 186chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 187chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.ColorProperty, ca); 271chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 272chrome.GlyphFill.BeginAnimation(SolidColorBrush.OpacityProperty, da); 347chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 350chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.ColorProperty, ca); 530chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 531chrome.GlyphFill.BeginAnimation(SolidColorBrush.OpacityProperty, da); 1153private static SolidColorBrush CommonCheckMarkDisabledFill 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1173private static SolidColorBrush CommonCheckMarkFill 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1195private static SolidColorBrush CommonCheckMarkPressedFill 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1345private static SolidColorBrush CommonHoverBackgroundOverlay 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1365private static SolidColorBrush CommonPressedBackgroundOverlay 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1385private static SolidColorBrush CommonDisabledBackgroundOverlay 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 2450private static SolidColorBrush _commonCheckMarkDisabledFill; 2451private static SolidColorBrush _commonCheckMarkFill; 2452private static SolidColorBrush _commonCheckMarkPressedFill; 2480private static SolidColorBrush _commonDisabledBackgroundOverlay; 2483private static SolidColorBrush _commonHoverBackgroundOverlay; 2489private static SolidColorBrush _commonPressedBackgroundOverlay; 2505public SolidColorBrush BackgroundOverlay;
Microsoft\Windows\Themes\ButtonChrome.cs (15)
132chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 152chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 212chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 241chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 252chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 253chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 303chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 304chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 323chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 344chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 345chrome.BackgroundOverlay.BeginAnimation(SolidColorBrush.OpacityProperty, da); 352chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 747private static SolidColorBrush CommonDisabledBackgroundOverlay 757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1165private static SolidColorBrush _commonDisabledBackgroundOverlay;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
288SolidColorBrush bottomBrush = (SolidColorBrush)GetCachedFreezable((int)bottomType);
Microsoft\Windows\Themes\ListBoxChrome.cs (3)
499private static SolidColorBrush CommonDisabledBackgroundOverlay 509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 672private static SolidColorBrush _commonDisabledBackgroundOverlay;
Microsoft\Windows\Themes\ScrollChrome.cs (12)
122chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 128chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 164chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 166chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 231chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 252OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 329chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 1781private static SolidColorBrush CommonThumbEnabledGlyphShadow 1791SolidColorBrush temp = new SolidColorBrush(Colors.White) 1806private SolidColorBrush GlyphShadow 1850private static SolidColorBrush _commonThumbEnabledGlyphShadow; 1884public SolidColorBrush GlyphShadow;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.AeroLite (19)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
73SolidColorBrush background = (SolidColorBrush)GetCachedFreezable((int)backgroundType); 225SolidColorBrush arrowFill = (SolidColorBrush)GetCachedFreezable((int)AeroLiteFreezables.ArrowFill);
Microsoft\Windows\Themes\ScrollChrome.cs (14)
270private static SolidColorBrush CommonThumbFill 280SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xDD, 0xDD, 0xDD)); 290private static SolidColorBrush CommonThumbHoverFill 300SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 310private static SolidColorBrush CommonThumbPressedFill 320SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 330private SolidColorBrush Fill 458private SolidColorBrush CommonThumbEnabledGlyph 468SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00)); 478private SolidColorBrush Glyph 500private static SolidColorBrush _commonThumbFill; 501private static SolidColorBrush _commonThumbHoverFill; 502private static SolidColorBrush _commonThumbPressedFill; 508private static SolidColorBrush _commonThumbEnabledGlyph;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.Classic (10)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (9)
403SolidColorBrush controlBrush = decorator.Background as SolidColorBrush; 518SolidColorBrush temp = new SolidColorBrush(); 923SolidColorBrush solidBrush = borderBrush as SolidColorBrush; 1449public SolidColorBrush LightBrush; 1450public SolidColorBrush LightLightBrush; 1451public SolidColorBrush DarkBrush; 1452public SolidColorBrush DarkDarkBrush;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.Fluent (1)
Controls\FallbackBrushConverter.cs (1)
15if (value is SolidColorBrush brush)
PresentationFramework.Luna (90)
Microsoft\Windows\Themes\ButtonChrome.cs (12)
554SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC7, 0xBA)); 578SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xCA, 0xC4, 0xB8)); 603SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC4, 0xC3, 0xBF)); 1282private static SolidColorBrush CommonDisabledFillNC 1292SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF5, 0xF4, 0xEA)); 1303private static SolidColorBrush CommonDisabledFillHS 1313SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF6, 0xF2, 0xE9)); 1324private static SolidColorBrush CommonDisabledFillM 1334SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF1, 0xF1, 0xED)); 1520private static SolidColorBrush _commonDisabledFillNC; 1521private static SolidColorBrush _commonDisabledFillHS; 1522private static SolidColorBrush _commonDisabledFillM;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
203SolidColorBrush tabStrokeBrush = new SolidColorBrush((themeColor == ThemeColor.Homestead) ? Color.FromArgb(0xFF, 0xCF, 0x72, 0x25) : Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 245SolidColorBrush border = (SolidColorBrush)GetCachedFreezable((int)LunaFreezables.PressedBorder); 355SolidColorBrush arrowFill = (SolidColorBrush)GetCachedFreezable((int)LunaFreezables.ArrowFill);
Microsoft\Windows\Themes\ScrollChrome.cs (58)
1423private static SolidColorBrush CommonDisabledGlyph 1433SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC9, 0xC2)); 1444private static SolidColorBrush CommonArrowGlyphNC 1454SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x4D, 0x61, 0x85)); 1465private static SolidColorBrush CommonArrowGlyphHS 1473private static SolidColorBrush CommonArrowGlyphM 1483SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x3F, 0x3D, 0x3D)); 1494private static SolidColorBrush CommonHoverArrowGlyphM 1504SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x20, 0x20, 0x20)); 1515private static SolidColorBrush CommonGripperGlyphNC 1525SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEE, 0xF4, 0xFE)); 1536private static SolidColorBrush CommonHoverGripperGlyphNC 1546SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFC, 0xFD, 0xFF)); 1557private static SolidColorBrush CommonPressedGripperGlyphNC 1567SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xCF, 0xDD, 0xFD)); 1578private static SolidColorBrush CommonGripperGlyphHS 1588SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0xDF, 0xAC)); 1599private static SolidColorBrush CommonHoverGripperGlyphHS 1609SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEB, 0xF5, 0xD4)); 1620private static SolidColorBrush CommonPressedGripperGlyphHS 1630SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xD0, 0x97)); 1641private static SolidColorBrush CommonGripperGlyphM 1651SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1717private static SolidColorBrush CommonDisabledGripperGlyphShadow 1727SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 1738private static SolidColorBrush CommonGripperGlyphShadowNC 1748SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0xB0, 0xF8)); 1759private static SolidColorBrush CommonHoverGripperGlyphShadowNC 1769SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x9C, 0xC5, 0xFF)); 1780private static SolidColorBrush CommonPressedGripperGlyphShadowNC 1790SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x9E, 0xD8)); 1801private static SolidColorBrush CommonGripperGlyphShadowHS 1811SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0x9D, 0x73)); 1822private static SolidColorBrush CommonHoverGripperGlyphShadowHS 1832SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB6, 0xC6, 0x8E)); 1843private static SolidColorBrush CommonPressedGripperGlyphShadowHS 1853SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)); 1864private static SolidColorBrush CommonGripperGlyphShadowM 1874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x95, 0xA2)); 2560private static SolidColorBrush _commonDisabledGlyph; 2562private static SolidColorBrush _commonArrowGlyphNC; 2563private static SolidColorBrush _commonArrowGlyphM; 2565private static SolidColorBrush _commonHoverArrowGlyphM; 2567private static SolidColorBrush _commonGripperGlyphNC; 2568private static SolidColorBrush _commonHoverGripperGlyphNC; 2569private static SolidColorBrush _commonPressedGripperGlyphNC; 2571private static SolidColorBrush _commonGripperGlyphHS; 2572private static SolidColorBrush _commonHoverGripperGlyphHS; 2573private static SolidColorBrush _commonPressedGripperGlyphHS; 2575private static SolidColorBrush _commonGripperGlyphM; 2577private static SolidColorBrush _commonDisabledGripperGlyphShadow; 2579private static SolidColorBrush _commonGripperGlyphShadowNC; 2580private static SolidColorBrush _commonHoverGripperGlyphShadowNC; 2581private static SolidColorBrush _commonPressedGripperGlyphShadowNC; 2583private static SolidColorBrush _commonGripperGlyphShadowHS; 2584private static SolidColorBrush _commonHoverGripperGlyphShadowHS; 2585private static SolidColorBrush _commonPressedGripperGlyphShadowHS; 2587private static SolidColorBrush _commonGripperGlyphShadowM;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
522private static SolidColorBrush CommonDisabledGlyphFill 531private static SolidColorBrush CommonCheckMarkFill 541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 551private static SolidColorBrush CommonCheckMarkPressedFill 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 623private static SolidColorBrush CommonDisabledBackground 631private static SolidColorBrush CommonDisabledBorder 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 838private static SolidColorBrush CommonIndeterminateFill 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73)); 987private static SolidColorBrush _commonCheckMarkFill; 988private static SolidColorBrush _commonCheckMarkPressedFill; 992private static SolidColorBrush _commonIndeterminateFill; 999private static SolidColorBrush _commonDisabledBorder;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.Royale (40)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
469SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF,0xC6,0xC5,0xC9)); 902private static SolidColorBrush CommonDisabledFill
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
132SolidColorBrush tabStrokeBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 167SolidColorBrush border = (SolidColorBrush)GetCachedFreezable((int)RoyaleFreezables.PressedBorder); 277SolidColorBrush arrowFill = (SolidColorBrush)GetCachedFreezable((int)RoyaleFreezables.ArrowFill);
Microsoft\Windows\Themes\ScrollChrome.cs (18)
842private static SolidColorBrush CommonDisabledGlyph 852SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB7, 0xCB, 0xE3)); 864private static SolidColorBrush CommonArrowGlyph 874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x64, 0x73)); 885private static SolidColorBrush CommonHoverArrowGlyph 895SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x6B, 0x7B, 0x84)); 906private static SolidColorBrush CommonGripperGlyph 916SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 953private static SolidColorBrush CommonDisabledGripperGlyphShadow 963SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 974private static SolidColorBrush CommonGripperGlyphShadow 984SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x97, 0xAF)); 1156private static SolidColorBrush _commonDisabledGlyph; 1158private static SolidColorBrush _commonArrowGlyph; 1160private static SolidColorBrush _commonHoverArrowGlyph; 1162private static SolidColorBrush _commonGripperGlyph; 1165private static SolidColorBrush _commonDisabledGripperGlyphShadow; 1167private static SolidColorBrush _commonGripperGlyphShadow;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
522private static SolidColorBrush CommonDisabledGlyphFill 531private static SolidColorBrush CommonCheckMarkFill 541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 551private static SolidColorBrush CommonCheckMarkPressedFill 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 623private static SolidColorBrush CommonDisabledBackground 631private static SolidColorBrush CommonDisabledBorder 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 838private static SolidColorBrush CommonIndeterminateFill 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73)); 987private static SolidColorBrush _commonCheckMarkFill; 988private static SolidColorBrush _commonCheckMarkPressedFill; 992private static SolidColorBrush _commonIndeterminateFill; 999private static SolidColorBrush _commonDisabledBorder;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
451if (c == ((SolidColorBrush)_commonBrushes[Center]).Color &&
PresentationFramework.Tests (5)
System\Windows\ResourceDictionaryTests.cs (5)
25_dictionary["StaticBrush"].Should().BeOfType<SolidColorBrush>(); 110var brush = new SolidColorBrush(Colors.Green); 123var initialBrush = new SolidColorBrush(Colors.Green); 124var updatedBrush = new SolidColorBrush(Colors.Red); 145var initialBrush = new SolidColorBrush(Colors.Green);
ReachFramework (56)
AlphaFlattener\BrushProxy.cs (29)
411if (! (_brush is SolidColorBrush) && ! Utility.IsIdentity(_brush.RelativeTransform)) 604if (_brush is SolidColorBrush) 606SolidColorBrush y = _brush as SolidColorBrush; 693if (_brush is SolidColorBrush) 695SolidColorBrush y = _brush as SolidColorBrush; 788if (!(_brush is SolidColorBrush)) 854SolidColorBrush sA = _brush as SolidColorBrush; 861SolidColorBrush sB = brushB.Brush as SolidColorBrush; 1057else if (_brush is SolidColorBrush) 1109else if (!(_brush is SolidColorBrush)) 1154SolidColorBrush scb = _brush as SolidColorBrush; 1381if (!(_brush is SolidColorBrush)) 2130Debug.Assert(b._brush is SolidColorBrush, "SolidColorBrush expected"); 2201if (brushB is SolidColorBrush) 2604SolidColorBrush sb = brush as SolidColorBrush; 2621SolidColorBrush sb = brush as SolidColorBrush; 2826SolidColorBrush solidBrush = brush as SolidColorBrush; 3283if (brushB.Brush is SolidColorBrush) 3285SolidColorBrush sB = brushB.Brush as SolidColorBrush; 3476if (_brush is SolidColorBrush)
AlphaFlattener\DrawingContext.cs (1)
646if (b is SolidColorBrush)
AlphaFlattener\ImageProxy.cs (6)
260if (brush.Brush is SolidColorBrush) 262SolidColorBrush sb = brush.Brush as SolidColorBrush; 301if (brush.Brush is SolidColorBrush) 303SolidColorBrush sb = brush.Brush as SolidColorBrush;
AlphaFlattener\MetroDevice.cs (4)
180if (!(brush is SolidColorBrush)) 188if (!(pen.Brush is SolidColorBrush)) 196if (g.OpacityMask.BrushList == null && !(g.OpacityMask.Brush is SolidColorBrush)) 275if (foreground != null && !(foreground is SolidColorBrush))
AlphaFlattener\Optimizer.cs (1)
359if ((b != null) && ((b is SolidColorBrush) || (b is LinearGradientBrush)))
AlphaFlattener\Primitive.cs (2)
600SolidColorBrush sb = OpacityMask.Brush as SolidColorBrush;
AlphaFlattener\PrimitiveList.cs (2)
191SolidColorBrush sb = b as SolidColorBrush;
AlphaFlattener\Utility.cs (2)
1100SolidColorBrush sb = brush as SolidColorBrush;
Serialization\VisualSerializer.cs (7)
335SolidColorBrush solidBrush = brush as SolidColorBrush; 687SolidColorBrush sb = brush as SolidColorBrush; 2061if ((foreground is SolidColorBrush) && (_opacityMask == null)) 2247SolidColorBrush sb = opacityMask as SolidColorBrush;
Serialization\VisualTreeFlattener.cs (2)
592SolidColorBrush colorBrush = fixedPage.Background as SolidColorBrush;
WindowsFormsIntegration (4)
System\Windows\Integration\HostUtils.cs (2)
139SWM.SolidColorBrush solid = c as SWM.SolidColorBrush;
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
378SWM.SolidColorBrush solidColorBrush = brush as SWM.SolidColorBrush;