117 references to Colors
Microsoft.CodeAnalysis.EditorFeatures (9)
Classification\ClassificationTypeFormatDefinitions.cs (5)
35
this.ForegroundColor =
Colors
.Black;
53
this.ForegroundColor =
Colors
.Black;
72
this.ForegroundColor =
Colors
.Maroon;
694
this.ForegroundColor =
Colors
.Green;
748
this.ForegroundColor =
Colors
.Green;
EditAndContinue\ActiveStatementTagFormatDefinition.cs (1)
33
this.BackgroundColor =
Colors
.Silver;
ReferenceHighlighting\DefinitionHighlightTagDefinition.cs (1)
27
this.Border = new Pen(new SolidColorBrush(
Colors
.Gray), 0.5);
Utilities\BrushToColorConverter.cs (2)
18
GradientBrush gradientBrush => gradientBrush.GradientStops.FirstOrDefault()?.Color ??
Colors
.Transparent,
19
_ =>
Colors
.Transparent
Microsoft.VisualStudio.LanguageServices (2)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
64
RemovedParameterText = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(
Colors
.Gray);
68
StrikethroughBrush = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(
Colors
.Red);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
213
ImageThemingUtilities.SetImageBackgroundColor(holder,
Colors
.Transparent);
PresentationCore (27)
MS\Internal\Ink\Renderer.cs (1)
704
private Color _highContrastColor =
Colors
.White;
System\Windows\Ink\DrawingAttributes.cs (3)
70
Debug.Assert(
Colors
.Black == (Color)GetDefaultDrawingAttributeValue(KnownIds.Color));
71
return
Colors
.Black;
660
return
Colors
.Black;
System\Windows\InterOp\HwndSource.cs (1)
273
_hwndTarget.BackgroundColor =
Colors
.Transparent;
System\Windows\InterOp\HwndTarget.cs (1)
2240
Colors
.Transparent, // _colorKey.GetValueOrDefault(Colors.Black),
System\Windows\Media\Effects\Generated\DropShadowBitmapEffect.cs (2)
298
internal static Color s_Color =
Colors
.Black;
339
Colors
.Black,
System\Windows\Media\Effects\Generated\DropShadowEffect.cs (2)
393
internal static Color s_Color =
Colors
.Black;
434
Colors
.Black,
System\Windows\Media\Effects\Generated\OuterGlowBitmapEffect.cs (2)
245
internal static Color s_GlowColor =
Colors
.Gold;
276
Colors
.Gold,
System\Windows\Media\Generated\GradientStop.cs (2)
235
Colors
.Transparent,
267
internal static Color s_Color =
Colors
.Transparent;
System\Windows\Media\Generated\SolidColorBrush.cs (2)
299
internal static Color s_Color =
Colors
.Transparent;
327
Colors
.Transparent,
System\Windows\Media3D\AmbientLight.cs (1)
32
: this(
Colors
.White )
System\Windows\Media3D\Generated\DiffuseMaterial.cs (4)
351
internal static Color s_Color =
Colors
.White;
352
internal static Color s_AmbientColor =
Colors
.White;
383
Colors
.White,
392
Colors
.White,
System\Windows\Media3D\Generated\EmissiveMaterial.cs (2)
324
internal static Color s_Color =
Colors
.White;
355
Colors
.White,
System\Windows\Media3D\Generated\Light.cs (2)
178
internal static Color s_Color =
Colors
.White;
206
Colors
.White,
System\Windows\Media3D\Generated\SpecularMaterial.cs (2)
351
internal static Color s_Color =
Colors
.White;
383
Colors
.White,
PresentationCore.Tests (38)
System\Windows\ClipboardTests.cs (1)
187
Color color =
Colors
.Red;
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
275
yield return new object[] {
Colors
.Red, typeof(string), CultureInfo.InvariantCulture };
System\Windows\Media\ColorConverter.Tests.cs (36)
70
yield return new object[] {
Colors
.Red, "Red" };
71
yield return new object[] {
Colors
.Blue, "Blue" };
72
yield return new object[] {
Colors
.Green, "Green" };
73
yield return new object[] {
Colors
.Orange, "Orange" };
74
yield return new object[] {
Colors
.Yellow, "Yellow" };
76
yield return new object[] {
Colors
.Black, "Black" };
77
yield return new object[] {
Colors
.White, "White" };
78
yield return new object[] {
Colors
.Gray, "Gray" };
79
yield return new object[] {
Colors
.DarkGray, "DarkGray" };
80
yield return new object[] {
Colors
.LightGray, "LightGray" };
82
yield return new object[] {
Colors
.Purple, "Purple" };
83
yield return new object[] {
Colors
.Magenta, "Magenta" };
84
yield return new object[] {
Colors
.Pink, "Pink" };
85
yield return new object[] {
Colors
.Brown, "Brown" };
86
yield return new object[] {
Colors
.Cyan, "Cyan" };
88
yield return new object[] {
Colors
.Olive, "Olive" };
89
yield return new object[] {
Colors
.Navy, "Navy" };
90
yield return new object[] {
Colors
.Teal, "Teal" };
91
yield return new object[] {
Colors
.Maroon, "Maroon" };
92
yield return new object[] {
Colors
.Silver, "Silver" };
94
yield return new object[] {
Colors
.Gold, "Gold" };
95
yield return new object[] {
Colors
.Coral, "Coral" };
96
yield return new object[] {
Colors
.Indigo, "Indigo" };
97
yield return new object[] {
Colors
.Violet, "Violet" };
98
yield return new object[] {
Colors
.Crimson, "Crimson" };
101
yield return new object[] {
Colors
.Chartreuse, "chartreuse" };
102
yield return new object[] {
Colors
.Khaki, "khaki" };
103
yield return new object[] {
Colors
.Tomato, "tomato" };
105
yield return new object[] {
Colors
.LightBlue, " LightBlue " };
106
yield return new object[] {
Colors
.LightCoral, " LightCoral" };
107
yield return new object[] {
Colors
.OldLace, "OldLace " };
358
yield return new object[] {
Colors
.Red, $"#{KnownColor.Red:X}" };
359
yield return new object[] {
Colors
.Blue, $"#{KnownColor.Blue:X}" };
360
yield return new object[] {
Colors
.Green, $"#{KnownColor.Green:X}" };
361
yield return new object[] {
Colors
.Orange, $"#{KnownColor.Orange:X}" };
362
yield return new object[] {
Colors
.Yellow, $"#{KnownColor.Yellow:X}" };
PresentationFramework (17)
MS\Internal\Ink\LassoHelper.cs (2)
46
private static readonly Color DotColor =
Colors
.Orange; //FromArgb(1, 0.89f, 0.3607f, 0.1843f);
47
private static readonly Color DotCircumferenceColor =
Colors
.White;
MS\Internal\Ink\PenCursorManager.cs (1)
74
da.Color =
Colors
.Black;
System\Windows\Appearance\WindowBackdropManager.cs (1)
105
windowSource.CompositionTarget.BackgroundColor =
Colors
.Transparent;
System\Windows\Controls\Primitives\Popup.cs (2)
3368
hwndTarget.BackgroundColor = transparent ?
Colors
.Transparent :
Colors
.Black;
System\Windows\Controls\ProgressBar.cs (6)
195
b.GradientStops.Add(new GradientStop(
Colors
.Transparent, 0.0));
198
b.GradientStops.Add(new GradientStop(
Colors
.Transparent, 1.0));
209
mask.GradientStops.Add(new GradientStop(
Colors
.Transparent, 0.0));
210
mask.GradientStops.Add(new GradientStop(
Colors
.Black, 0.4));
211
mask.GradientStops.Add(new GradientStop(
Colors
.Black, 0.6));
212
mask.GradientStops.Add(new GradientStop(
Colors
.Transparent, 1.0));
System\Windows\Controls\TextRangeAdaptor.cs (1)
1257
Color color = (solidBrush != null) ? solidBrush.Color :
Colors
.Black;
System\Windows\Documents\ColumnResizeAdorner.cs (1)
35
_pen = new Pen(new SolidColorBrush(
Colors
.LightSlateGray), 2.0);
System\Windows\Documents\CompositionAdorner.cs (1)
181
Pen pen = new Pen(new SolidColorBrush(
Colors
.Black), lineHeight);
System\Windows\Shell\WindowChromeWorker.cs (1)
962
_hwndSource.CompositionTarget.BackgroundColor =
Colors
.Transparent;
System\Windows\SystemColors.cs (1)
2292
color =
Colors
.Transparent;
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
923
Brush = new SolidColorBrush(
Colors
.White)
949
Brush = new SolidColorBrush(
Colors
.White)
Microsoft\Windows\Themes\ScrollChrome.cs (3)
1241
Brush = new SolidColorBrush(
Colors
.White)
1791
SolidColorBrush temp = new SolidColorBrush(
Colors
.White)
1830
_localResources.GlyphShadow = new SolidColorBrush(
Colors
.White);
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
923
Brush = new SolidColorBrush(
Colors
.White)
949
Brush = new SolidColorBrush(
Colors
.White)
Microsoft\Windows\Themes\ScrollChrome.cs (3)
1241
Brush = new SolidColorBrush(
Colors
.White)
1791
SolidColorBrush temp = new SolidColorBrush(
Colors
.White)
1830
_localResources.GlyphShadow = new SolidColorBrush(
Colors
.White);
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 (8)
AlphaFlattener\BrushProxy.cs (2)
1021
_beforeDrawing =
Colors
.Transparent;
1022
_afterDrawing =
Colors
.Transparent;
AlphaFlattener\DrawingContext.cs (4)
706
brush = BrushProxy.BlendColorWithBrush(false,
Colors
.White, brush, false);
766
strokeBrush = BrushProxy.BlendColorWithBrush(false,
Colors
.White, strokeBrush, false);
886
image.BlendOverColor(
Colors
.White, 1.0, false);
931
BrushProxy bp = BrushProxy.BlendColorWithBrush(false,
Colors
.White, foreground, false);
AlphaFlattener\Flattener.cs (1)
676
BrushProxy under = BrushProxy.CreateColorBrush(
Colors
.White);
AlphaFlattener\MetroDevice.cs (1)
231
g.OpacityMask = BrushProxy.CreateColorBrush(
Colors
.Transparent);
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionSpanTagDefinition.cs (1)
25
this.BackgroundColor =
Colors
.LightBlue;