116 writes to Brush
PresentationCore (2)
System\Windows\Media\Pen.cs (2)
43Brush = brush; 75Brush = brush;
PresentationFramework (11)
MS\Internal\Documents\TextBoxLine.cs (1)
220ctx.DrawGeometry(selectionBrush, new Pen() { Brush = selectionBrush }, selectionGeometry);
MS\Internal\PtsHost\ParagraphVisual.cs (4)
89Brush = _borderBrush, 113Brush = _borderBrush, 126Brush = _borderBrush, 139Brush = _borderBrush,
System\Windows\Controls\Border.cs (4)
407Brush = borderBrush 472Brush = borderBrush 506Brush = borderBrush 539Brush = borderBrush
System\Windows\Documents\CompositionAdorner.cs (1)
245pen.Brush = new SolidColorBrush(compositionLine.LineColor);
System\Windows\Shapes\Shape.cs (1)
489Brush = Stroke,
PresentationFramework.Aero (34)
Microsoft\Windows\Themes\BulletChrome.cs (21)
923Brush = new SolidColorBrush(Colors.White) 949Brush = new SolidColorBrush(Colors.White) 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1037temp.Brush = brush; 1074temp.Brush = brush; 1108temp.Brush = brush; 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 1502temp.Brush = brush; 1537temp.Brush = brush; 1572temp.Brush = brush; 1607temp.Brush = brush; 1642temp.Brush = brush; 1677temp.Brush = brush; 1712temp.Brush = brush; 1747temp.Brush = brush; 1782temp.Brush = brush; 1816temp.Brush = brush; 1850temp.Brush = brush;
Microsoft\Windows\Themes\ButtonChrome.cs (5)
821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 953temp.Brush = brush; 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF))
Microsoft\Windows\Themes\ListBoxChrome.cs (3)
547temp.Brush = brush; 584temp.Brush = brush; 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (5)
1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1241Brush = new SolidColorBrush(Colors.White) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF))
PresentationFramework.Aero2 (34)
Microsoft\Windows\Themes\BulletChrome.cs (21)
923Brush = new SolidColorBrush(Colors.White) 949Brush = new SolidColorBrush(Colors.White) 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1037temp.Brush = brush; 1074temp.Brush = brush; 1108temp.Brush = brush; 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 1502temp.Brush = brush; 1537temp.Brush = brush; 1572temp.Brush = brush; 1607temp.Brush = brush; 1642temp.Brush = brush; 1677temp.Brush = brush; 1712temp.Brush = brush; 1747temp.Brush = brush; 1782temp.Brush = brush; 1816temp.Brush = brush; 1850temp.Brush = brush;
Microsoft\Windows\Themes\ButtonChrome.cs (5)
821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 953temp.Brush = brush; 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF))
Microsoft\Windows\Themes\ListBoxChrome.cs (3)
547temp.Brush = brush; 584temp.Brush = brush; 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (5)
1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1241Brush = new SolidColorBrush(Colors.White) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF))
PresentationFramework.AeroLite (3)
Microsoft\Windows\Themes\ScrollChrome.cs (3)
369Brush = new SolidColorBrush(Color.FromRgb(0xA3, 0xA3, 0xA3)) 395Brush = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0xC4)) 421Brush = new SolidColorBrush(Color.FromRgb(0x00, 0x73, 0x94))
PresentationFramework.Luna (22)
Microsoft\Windows\Themes\ScrollChrome.cs (19)
1938Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1962Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1986Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x94, 0x95, 0xA2)) 2010Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x66, 0x65)) 2034Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x43, 0x48, 0x48)) 2093Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xE8, 0xE8, 0xDF)) 2117Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xB4, 0xC8, 0xF6)) 2143Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x98, 0xB1, 0xE4)) 2167Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xCE, 0xFF)) 2191Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x8F, 0xDA)) 2215Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x99, 0x7D)) 2239Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xCB, 0x96)) 2264Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)) 2288Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2312Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2337Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2420temp.Brush = brush; 2454temp.Brush = brush; 2488temp.Brush = brush;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
678Brush = CommonDisabledBorder 713temp.Brush = brush; 747temp.Brush = brush;
PresentationFramework.Royale (7)
Microsoft\Windows\Themes\ScrollChrome.cs (4)
1033temp.Brush = brush; 1056Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x85, 0x99, 0xB1)) 1080Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x52, 0x66, 0x7E)) 1120Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
678Brush = CommonDisabledBorder 713temp.Brush = brush; 747temp.Brush = brush;
ReachFramework (3)
AlphaFlattener\BrushProxy.cs (1)
191p.Brush = _brush.GetRealBrush();
AlphaFlattener\Flattener.cs (1)
1389pen.Brush = strokeBrush;
Serialization\DrawingContextFlattener.cs (1)
232pen.Brush = b;
143 references to Brush
PresentationCore (4)
System\Windows\Media\Generated\Pen.cs (3)
369Brush vBrush = Brush; 411Brush vBrush = Brush; 433Brush vBrush = Brush;
System\Windows\Media\Pen.cs (1)
144return (pen != null) && (pen.Brush != null);
PresentationFramework (1)
System\Windows\Controls\TextRangeAdaptor.cs (1)
1313color = ColorFromBrush(decor.Pen.Brush);
PresentationFramework.Aero (58)
Microsoft\Windows\Themes\BulletChrome.cs (27)
127chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 140stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 178chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 186chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 194stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 213stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 228stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 271chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 275chrome.HighlightStroke.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 280GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 298stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 347chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 355GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 374stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 388GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 412chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 445chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 514chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 521chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 530chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 532chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 545GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 823if (_commonBorderPen != null && border == _commonBorderPen.Brush) 1128_localResources.HighlightStroke.Brush.Opacity = 0; 2182_localResources.GlyphStroke.Brush.Opacity = 0; 2187_localResources.GlyphStroke.Brush.Opacity = 0; 2338_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ButtonChrome.cs (15)
116GradientStopCollection gsc = ((LinearGradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 132chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 152chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 160GradientStopCollection gsc = ((LinearGradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 212chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 241chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 253chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 304chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 309chrome.InnerBorderPen.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 323chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 340chrome.InnerBorderPen.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 344chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 352chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 575if (_commonBorderPen != null && border == _commonBorderPen.Brush) 918_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ListBoxChrome.cs (4)
141chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 156chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 447if (_commonBorderPen != null && border == _commonBorderPen.Brush) 652_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ScrollChrome.cs (12)
122chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 125chrome.InnerBorder.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 128chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 164chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 165chrome.InnerBorder.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 166chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 231chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 252OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 329chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 1207_localResources.OuterBorder.Brush.Opacity = 0; 1283_localResources.InnerBorder.Brush.Opacity = 0; 1358_localResources.Shadow.Brush.Opacity = 0;
PresentationFramework.Aero2 (58)
Microsoft\Windows\Themes\BulletChrome.cs (27)
127chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 140stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 178chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 186chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 194stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 213stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 228stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 271chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 275chrome.HighlightStroke.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 280GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 298stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 347chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 355GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 374stops = ((GradientBrush)chrome.HighlightStroke.Brush).GradientStops; 388GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 412chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 445chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 514chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 521chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 530chrome.GlyphStroke.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 532chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 545GradientStopCollection stops = ((GradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 823if (_commonBorderPen != null && border == _commonBorderPen.Brush) 1128_localResources.HighlightStroke.Brush.Opacity = 0; 2182_localResources.GlyphStroke.Brush.Opacity = 0; 2187_localResources.GlyphStroke.Brush.Opacity = 0; 2338_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ButtonChrome.cs (15)
116GradientStopCollection gsc = ((LinearGradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 132chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 152chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 160GradientStopCollection gsc = ((LinearGradientBrush)chrome.InnerBorderPen.Brush).GradientStops; 212chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 241chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, daukf); 253chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 304chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 309chrome.InnerBorderPen.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 323chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 340chrome.InnerBorderPen.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 344chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 352chrome.BorderOverlayPen.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 575if (_commonBorderPen != null && border == _commonBorderPen.Brush) 918_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ListBoxChrome.cs (4)
141chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 156chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 447if (_commonBorderPen != null && border == _commonBorderPen.Brush) 652_localResources.BorderOverlayPen.Brush.Opacity = 0;
Microsoft\Windows\Themes\ScrollChrome.cs (12)
122chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 125chrome.InnerBorder.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 128chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 164chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 165chrome.InnerBorder.Brush.BeginAnimation(LinearGradientBrush.OpacityProperty, da); 166chrome.Shadow.Brush.BeginAnimation(SolidColorBrush.OpacityProperty, da); 231chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 252OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 329chrome.OuterBorder.Brush.BeginAnimation(SolidColorBrush.ColorProperty, ca); 1207_localResources.OuterBorder.Brush.Opacity = 0; 1283_localResources.InnerBorder.Brush.Opacity = 0; 1358_localResources.Shadow.Brush.Opacity = 0;
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
671if (_commonBorderPen != null && brush == _commonBorderPen.Brush)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
408if (_commonBorderPen != null && border == _commonBorderPen.Brush)
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
530if (_commonBorderPen != null && brush == _commonBorderPen.Brush)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
408if (_commonBorderPen != null && border == _commonBorderPen.Brush)
ReachFramework (17)
AlphaFlattener\BrushProxy.cs (4)
270Debug.Assert(pen.Brush != null, "pen expected to have a brush"); 277BrushProxy brush = BrushProxy.CreateBrush(pen.Brush, bounds); 303Debug.Assert(pen.Brush != null, "pen expected to have a brush"); 310BrushProxy brush = BrushProxy.CreateUserBrush(pen.Brush, bounds, brushToWorldTransformHint, treeWalkProgress);
AlphaFlattener\DrawingContext.cs (1)
643b = p.Brush;
AlphaFlattener\MetroDevice.cs (4)
145if (Utility.IsTransparent(_opacity) || ((brush == null) && (pen == null || pen.Brush == null)) || (geometry == null)) 186if ((pen != null) && (pen.Brush != null)) 188if (!(pen.Brush is SolidColorBrush)) 221if ((pen != null) && (pen.Brush != null))
AlphaFlattener\Primitive.cs (1)
340if ((gd.Pen != null) && (gd.Pen.Brush != null))
Serialization\DrawingContextFlattener.cs (4)
221Brush b = ReduceBrush(pen.Brush, bounds); 228if (! Object.ReferenceEquals(b, pen.Brush)) 252if ((pen != null) && (pen.Brush != null)) 256if (VisualSerializer.NeedBounds(pen.Brush))
Serialization\VisualSerializer.cs (3)
915WriteBrush("Stroke", pen.Brush, bounds); 1157if ((pen.Brush != null) && !BrushProxy.IsEmpty(pen.Brush))
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
241separatorPen.Brush.Opacity = _separatorOpacity;