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