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