Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (10)
162Brush brush,
191Brush brush,
268Brush brush,
309Brush brush,
404Brush brush,
447Brush brush,
531Brush brush,
793public override void PushOpacityMask(Brush brush)
1113public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)
1341private void AddNewGeometryDrawing(Brush brush, Pen pen, Geometry geometry)
Core\CSharp\System\Windows\Media\FormattedText.cs (9)
58Brush foreground) : this(
88Brush foreground,
122Brush foreground,
154Brush foreground,
188Brush foreground,
213Brush foreground,
222double emSize, Brush foreground, NumberSubstitution numberSubstitution, TextFormattingMode textFormattingMode, double pixelsPerDip)
337public void SetForegroundBrush(Brush foregroundBrush)
348public void SetForegroundBrush(Brush foregroundBrush, int startIndex, int count)
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (18)
1194(Brush)DependentLookup(data->hBrush),
1206(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush),
1218(Brush)DependentLookup(data->hBrush),
1232(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush),
1246(Brush)DependentLookup(data->hBrush),
1260(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush),
1274(Brush)DependentLookup(data->hBrush),
1308(Brush)DependentLookup(data->hForegroundBrush),
1361(Brush)DependentLookup(data->hOpacityMask)
1542(Brush)DependentLookup(data->hBrush),
1554(Brush)DependentLookup(data->hBrush),
1567(Brush)DependentLookup(data->hBrush),
1581(Brush)DependentLookup(data->hBrush),
1598(Brush)DependentLookup(data->hBrush),
1612(Brush)DependentLookup(data->hBrush),
1629(Brush)DependentLookup(data->hBrush),
1664(Brush)DependentLookup(data->hForegroundBrush),
1718(Brush)DependentLookup(data->hOpacityMask)
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (8)
42internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
66internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
71_backgroundBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(backgroundBrush);
73_borderBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(borderBrush);
161private Brush _backgroundBrush; // Background brush
162private Brush _borderBrush; // Border brush
src\Framework\System\Windows\Controls\DataGrid.cs (12)
717typeof(Brush),
724public Brush HorizontalGridLinesBrush
726get { return (Brush)GetValue(HorizontalGridLinesBrushProperty); }
736typeof(Brush),
743public Brush VerticalGridLinesBrush
745get { return (Brush)GetValue(VerticalGridLinesBrushProperty); }
1046public Brush RowBackground
1048get { return (Brush)GetValue(RowBackgroundProperty); }
1056DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1064public Brush AlternatingRowBackground
1066get { return (Brush)GetValue(AlternatingRowBackgroundProperty); }
1074DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));