131 references to Brushes
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
ConflictTagDefinition.cs (1)
27this.Border = new Pen(Brushes.Red, thickness: 1.5);
EditAndContinue\EditAndContinueErrorTypeFormatDefinition.cs (1)
26this.ForegroundBrush = Brushes.Purple;
InlineDiagnostics\InlineDiagnosticsFormatDefinition.cs (1)
77BackgroundBrush = Brushes.Purple;
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
95Background = Brushes.Transparent,
InlineRename\HighlightTags\RenameConflictTagDefinition.cs (1)
28this.Border = new Pen(Brushes.Red, thickness: StrokeThickness) { DashStyle = new DashStyle(StrokeDashArray, 0) };
InlineRename\HighlightTags\RenameFixupTagDefinition.cs (1)
28this.Border = new Pen(Brushes.Green, thickness: StrokeThickness) { DashStyle = new DashStyle(StrokeDashArray, 0) };
QuickInfo\ProjectionBufferContent.cs (1)
85view.Background = Brushes.Transparent;
RenameTracking\RenameTrackingTagDefinition.cs (1)
27this.Border = new Pen(Brushes.Black, thickness: 1.0) { DashStyle = new DashStyle(new[] { 0.5, 4.0 }, 1) };
Structure\StructureTaggerProvider.cs (1)
53view.Background = Brushes.Transparent;
ViewHostingControl.cs (1)
32Background = Brushes.Transparent;
Microsoft.VisualStudio.LanguageServices (4)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (4)
57Background = Brushes.Transparent; 58BorderBrush = Brushes.Transparent; 199this.Background = Brushes.Transparent; 200this.BorderBrush = Brushes.Transparent;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
326Background = Brushes.Transparent,
PresentationCore (3)
System\Windows\Ink\Stroke2.cs (1)
392drawingContext.DrawGeometry(Brushes.White, null, GetGeometry(selectedDA));
System\Windows\Media\HitTestDrawingContextWalker.cs (1)
193DrawGeometry(Brushes.Black, pen: null, new RectangleGeometry(rectangle));
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (1)
170DrawGeometry(Brushes.Black, pen: null, new RectangleGeometry(rectangle));
PresentationCore.Tests (37)
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
276yield return new object[] { Brushes.Purple, typeof(string), CultureInfo.CurrentCulture };
System\Windows\Media\Generated\BrushConverter.Tests.cs (36)
65yield return new object[] { Brushes.Red, "Red" }; 66yield return new object[] { Brushes.Blue, "Blue" }; 67yield return new object[] { Brushes.Green, "Green" }; 68yield return new object[] { Brushes.Orange, "Orange" }; 69yield return new object[] { Brushes.Yellow, "Yellow" }; 71yield return new object[] { Brushes.Black, "Black" }; 72yield return new object[] { Brushes.White, "White" }; 73yield return new object[] { Brushes.Gray, "Gray" }; 74yield return new object[] { Brushes.DarkGray, "DarkGray" }; 75yield return new object[] { Brushes.LightGray, "LightGray" }; 77yield return new object[] { Brushes.Purple, "Purple" }; 78yield return new object[] { Brushes.Magenta, "Magenta" }; 79yield return new object[] { Brushes.Pink, "Pink" }; 80yield return new object[] { Brushes.Brown, "Brown" }; 81yield return new object[] { Brushes.Cyan, "Cyan" }; 83yield return new object[] { Brushes.Olive, "Olive" }; 84yield return new object[] { Brushes.Navy, "Navy" }; 85yield return new object[] { Brushes.Teal, "Teal" }; 86yield return new object[] { Brushes.Maroon, "Maroon" }; 87yield return new object[] { Brushes.Silver, "Silver" }; 89yield return new object[] { Brushes.Gold, "Gold" }; 90yield return new object[] { Brushes.Coral, "Coral" }; 91yield return new object[] { Brushes.Indigo, "Indigo" }; 92yield return new object[] { Brushes.Violet, "Violet" }; 93yield return new object[] { Brushes.Crimson, "Crimson" }; 96yield return new object[] { Brushes.Chartreuse, "chartreuse" }; 97yield return new object[] { Brushes.Khaki, "khaki" }; 98yield return new object[] { Brushes.Tomato, "tomato" }; 100yield return new object[] { Brushes.LightBlue, " LightBlue " }; 101yield return new object[] { Brushes.LightCoral, " LightCoral" }; 102yield return new object[] { Brushes.OldLace, "OldLace " }; 299yield return new object[] { Brushes.Red, $"#{KnownColor.Red:X}" }; 300yield return new object[] { Brushes.Blue, $"#{KnownColor.Blue:X}" }; 301yield return new object[] { Brushes.Green, $"#{KnownColor.Green:X}" }; 302yield return new object[] { Brushes.Orange, $"#{KnownColor.Orange:X}" }; 303yield return new object[] { Brushes.Yellow, $"#{KnownColor.Yellow:X}" };
PresentationFramework (59)
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
36_adornerBorderPen = new Pen(Brushes.Black, 1.0);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (4)
32_adornerBorderPen = new Pen(Brushes.Black, 1.0); 58Brushes.Transparent, 62Pen squareCapPen = new Pen(Brushes.Black, LineThickness) 330drawingContext.DrawGeometry(Brushes.Transparent, null, backgroundGeometry);
MS\Internal\Documents\DocumentGrid.cs (1)
1677Background = Brushes.Transparent
MS\Internal\Ink\PenCursorManager.cs (1)
447Pen pen1 = new Pen(Brushes.Gray, 0.7);
MS\Internal\PtsHost\PageVisual.cs (1)
52dc.DrawRectangle(Brushes.Transparent, null, _renderBounds);
System\Windows\Controls\BorderGapMaskConverter.cs (3)
104rectColumn1.Fill = Brushes.Black; 105rectColumn2.Fill = Brushes.Black; 106rectColumn3.Fill = Brushes.Black;
System\Windows\Controls\DataGrid.cs (2)
711new FrameworkPropertyMetadata(Brushes.Black, new PropertyChangedCallback(OnNotifyGridLinePropertyChanged))); 730new FrameworkPropertyMetadata(Brushes.Black, new PropertyChangedCallback(OnNotifyGridLinePropertyChanged)));
System\Windows\Controls\Grid.cs (2)
3959s_oddDashPen = new Pen(Brushes.Blue, c_penWidth); 3967s_evenDashPen = new Pen(Brushes.Yellow, c_penWidth);
System\Windows\Controls\PasswordBox.cs (1)
1147this.ScrollViewer.Background = Brushes.Transparent;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1569this.ScrollViewer.Background = Brushes.Transparent;
System\Windows\Controls\Validation.cs (1)
595border.SetValue(Border.BorderBrushProperty, Brushes.Red);
System\Windows\Documents\FixedPage.cs (6)
433new FrameworkPropertyMetadata((Brush)Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender)); 1248Pen pen = new Pen(Brushes.Green, 1); 1257Pen backgroundPen = new Pen(Brushes.Black,1); 1272Brushes.White, 1276Pen backgroundPen = new Pen(Brushes.Black,1); 1277dc.DrawGeometry(Brushes.Black, backgroundPen, geom);
System\Windows\Documents\FixedPageStructure.cs (21)
221Pen pen = new Pen(Brushes.Blue, 1); 270Brushes.DarkViolet, 284Brushes.DarkViolet, 301Brushes.DarkViolet, 322Pen pen = new Pen(Brushes.DarkMagenta, 1.5); 338Brushes.DarkViolet, 356Pen pen = new Pen(Brushes.DarkMagenta, 1.5); 372Brushes.DarkViolet, 389Pen pen = new Pen(Brushes.Red, 0.5); 418Brushes.DarkViolet, 434Brushes.DarkViolet, 482Brushes.DarkGreen, 498Brushes.DarkGreen, 557Brushes.DarkBlue, 561Pen pen = new Pen(Brushes.Blue, 2); 604dc.DrawRectangle(Brushes.CadetBlue, null, imageRect); 626Brushes.DarkGreen, 646Pen pen = new Pen(Brushes.Red, 1); 657Brushes.White, 661Pen backgroundPen = new Pen(Brushes.Black,1); 662dc.DrawGeometry(Brushes.Black, backgroundPen, geom);
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
146Pen pen = new Pen(Brushes.Blue, 2);
System\Windows\Documents\FixedSOMGroup.cs (1)
151Pen pen = new Pen(Brushes.Maroon, 3);
System\Windows\Documents\FixedSOMImage.cs (1)
90Pen pen = new Pen(Brushes.Yellow, 1);
System\Windows\Documents\FixedSOMSemanticBox.cs (3)
73Brushes.White, 78Pen backgroundPen = new Pen(Brushes.Black,1); 79dc.DrawGeometry(Brushes.Black, backgroundPen, geom);
System\Windows\Documents\FixedSOMTable.cs (2)
38Pen pen = new Pen(Brushes.Green, 5); 47Brushes.Blue,
System\Windows\Documents\FixedSOMTableCell.cs (2)
41Pen pen = new Pen(Brushes.Red, 2); 70element.SetValue(Block.BorderBrushProperty, Brushes.Black);
System\Windows\Documents\FixedSOMTextRun.cs (1)
185Pen pen = new Pen(Brushes.Blue, 1);
System\Windows\Documents\SpellerHighlightLayer.cs (1)
149Pen pen = new Pen(Brushes.Red, 0.33);
System\Windows\Documents\TextElement.cs (1)
683Brushes.Black,
System\Windows\Documents\TextRangeEditTables.cs (1)
672BorderBrush = System.Windows.Media.Brushes.Black
PresentationFramework.Fluent (1)
Controls\FallbackBrushConverter.cs (1)
26return Brushes.Red;
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
1469return Brushes.White;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
627return Brushes.White;
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
906return Brushes.White;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
627return Brushes.White;
PresentationFramework.Tests (1)
System\Windows\ResourceDictionaryTests.cs (1)
160textBlock.Foreground.Should().BeSameAs(Brushes.Black);
ReachFramework (9)
AlphaFlattener\BrushProxy.cs (5)
1481context.DrawGeometry(Brushes.Black, null, geometry); 2599private static BrushProxy _blackBrush = new BrushProxy(Brushes.Black); 2600private static BrushProxy _whiteBrush = new BrushProxy(Brushes.White); 3041Brushes.Transparent, 3138Brushes.Transparent,
AlphaFlattener\Flattener.cs (2)
1018Pen black = new Pen(Brushes.Black, 0.8) 1043Pen pen = new Pen(Brushes.Blue, 0.8)
Serialization\VisualSerializer.cs (2)
1865brush = Brushes.Transparent; 2038foreground = Brushes.Transparent;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionSpanTagDefinition.cs (1)
24this.Border = new Pen(Brushes.DarkBlue, thickness: 1.5);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
158if (brush == Brushes.Transparent)