10 types derived from Brush
PresentationCore (10)
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
21public partial class BitmapCacheBrush : Brush, ICyclicBrush
Core\CSharp\System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
49sealed partial class ImplicitInputBrush : Brush
Core\CSharp\System\Windows\Media\Effects\ImplicitInputBrush.cs (1)
14internal partial class ImplicitInputBrush : Brush
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (1)
51sealed partial class BitmapCacheBrush : Brush
Core\CSharp\System\Windows\Media\Generated\GradientBrush.cs (1)
51abstract partial class GradientBrush : Brush
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (1)
51sealed partial class SolidColorBrush : Brush
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (1)
51abstract partial class TileBrush : Brush
Core\CSharp\System\Windows\Media\GradientBrush.cs (1)
37public abstract partial class GradientBrush : Brush
Core\CSharp\System\Windows\Media\SolidColorBrush.cs (1)
42public sealed partial class SolidColorBrush : Brush
Core\CSharp\System\Windows\Media\TileBrush.cs (1)
36public abstract partial class TileBrush : Brush
718 references to Brush
PresentationCore (244)
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (2)
441public Brush ForegroundBrush 446public Brush BackgroundBrush
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
70private Brush _defaultTextDecorationsBrush; // Default brush for paragraph text decorations 2673internal Brush DefaultTextDecorationsBrush
Core\CSharp\MS\Internal\TextFormatting\GenericTextProperties.cs (6)
48Brush foregroundBrush, 49Brush backgroundBrush, 152public override Brush ForegroundBrush 161public override Brush BackgroundBrush 213private Brush _foregroundBrush; 214private Brush _backgroundBrush;
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1200Brush foregroundBrush, 1289Brush foregroundBrush, // default brush if text decoration has no pen
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
259Brush foregroundBrush,
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1772Brush foregroundBrush = TextRun.Properties.ForegroundBrush;
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (1)
161internal Brush DefaultTextDecorationsBrush
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
258Brush foregroundBrush,
Core\CSharp\MS\Internal\TextFormatting\TextShapeableSymbols.cs (1)
159Brush foregroundBrush,
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (6)
120Brush brush, 166Brush brush, 216Brush brush, 256Brush brush, 317public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 339Brush brush)
Core\CSharp\System\Windows\Media\Brush.cs (3)
70internal static Brush Parse(string value, ITypeDescriptorContext context) 72Brush brush; 79brush = (Brush)freezer.TryGetFreezable(value);
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
85public Brush OpacityMask
Core\CSharp\System\Windows\Media\Converters\Generated\BrushValueSerializer.cs (7)
66if (!(value is Brush)) 71Brush instance = (Brush) value; 86return Brush.Parse(value, context ); 100if (value is Brush) 102Brush instance = (Brush) value;
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\Effects\Effect.cs (1)
52public static Brush ImplicitInput
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (5)
344DependencyProperty.Register(dpName, typeof(Brush), ownerType, 473_brush = (Brush)newValue, 543Brush oldBrush = null; 551Brush newBrush = newSampler._brush; 1112public Brush _brush;
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\Brush.cs (11)
66public new Brush Clone() 68return (Brush)base.Clone(); 75public new Brush CloneCurrentValue() 77return (Brush)base.CloneCurrentValue(); 93Brush target = ((Brush) d); 119Brush target = ((Brush) d); 167Brush target = ((Brush) d); 470Type typeofThis = typeof(Brush);
Core\CSharp\System\Windows\Media\Generated\BrushConverter.cs (7)
84if (!(context.Instance is Brush)) 89Brush value = (Brush)context.Instance; 125return Brush.Parse(source, context); 147if (destinationType != null && value is Brush) 149Brush instance = (Brush)value;
Core\CSharp\System\Windows\Media\Generated\DrawingContext.cs (9)
85Brush brush, 105Brush brush, 133Brush brush, 165Brush brush, 199Brush brush, 233Brush brush, 257Brush brush, 302Brush foregroundBrush, 357Brush opacityMask);
Core\CSharp\System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (9)
101Brush brush, 128Brush brush, 163Brush brush, 204Brush brush, 249Brush brush, 292Brush brush, 327Brush brush, 391Brush foregroundBrush, 474Brush opacityMask)
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (9)
92Brush brush, 115Brush brush, 146Brush brush, 181Brush brush, 218Brush brush, 255Brush brush, 282Brush brush, 336Brush foregroundBrush, 409Brush opacityMask)
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (10)
260Brush oldV = (Brush) e.OldValue; 261Brush newV = (Brush) e.NewValue; 475public Brush OpacityMask 479return (Brush) GetValue(OpacityMaskProperty); 596Brush vOpacityMask = OpacityMask; 670Brush vOpacityMask = OpacityMask; 705Brush vOpacityMask = OpacityMask; 945typeof(Brush),
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (10)
114Brush oldV = (Brush) e.OldValue; 115Brush newV = (Brush) e.NewValue; 241public Brush Brush 245return (Brush) GetValue(BrushProperty); 330Brush vBrush = Brush; 361Brush vBrush = Brush; 384Brush vBrush = Brush; 491typeof(Brush),
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (10)
143Brush oldV = (Brush) e.OldValue; 144Brush newV = (Brush) e.NewValue; 189public Brush ForegroundBrush 193return (Brush) GetValue(ForegroundBrushProperty); 249Brush vForegroundBrush = ForegroundBrush; 278Brush vForegroundBrush = ForegroundBrush; 299Brush vForegroundBrush = ForegroundBrush; 407typeof(Brush),
Core\CSharp\System\Windows\Media\Generated\Pen.cs (10)
114Brush oldV = (Brush) e.OldValue; 115Brush newV = (Brush) e.NewValue; 235public Brush Brush 239return (Brush) GetValue(BrushProperty); 399Brush vBrush = Brush; 441Brush vBrush = Brush; 463Brush vBrush = Brush; 601typeof(Brush),
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)
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (9)
180Brush brush, 242Brush brush, 315Brush brush, 391Brush brush, 478Brush brush, 556Brush brush, 633Brush brush, 805Brush foregroundBrush, 1062Brush opacityMask)
Core\CSharp\System\Windows\Media\Generated\TextEffect.cs (3)
150public Brush Foreground 154return (Brush) GetValue(ForegroundProperty); 338typeof(Brush),
Core\CSharp\System\Windows\Media\GeometryDrawing.cs (1)
41public GeometryDrawing(Brush brush, Pen pen, Geometry geometry)
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1686internal void EmitBackground(DrawingContext dc, Brush backgroundBrush)
Core\CSharp\System\Windows\Media\GlyphRunDrawing.cs (1)
38public GlyphRunDrawing(Brush foregroundBrush, GlyphRun glyphRun)
Core\CSharp\System\Windows\Media\HitTestDrawingContextWalker.cs (3)
85Brush brush, 116Brush brush, 151Brush brush,
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (3)
118Brush brush, 176public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 242public override void PushOpacityMask(Brush brush)
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (3)
81Brush brush, 116public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 168public override void PushOpacityMask(Brush brush)
Core\CSharp\System\Windows\Media\Parsers.cs (1)
257internal static Brush ParseBrush(string brush, IFormatProvider formatProvider, ITypeDescriptorContext context)
Core\CSharp\System\Windows\Media\Pen.cs (2)
51public Pen(Brush brush, 70Brush brush,
Core\CSharp\System\Windows\Media\SolidColorBrush.cs (1)
209|| !DoubleUtil.AreClose(Opacity, Brush.c_Opacity))
Core\CSharp\System\Windows\Media\TextEffect.cs (1)
51Brush foreground,
Core\CSharp\System\Windows\Media\TextFormatting\TextRunProperties.cs (2)
63public abstract Brush ForegroundBrush 70public abstract Brush BackgroundBrush
Core\CSharp\System\Windows\Media\Visual.cs (7)
791Brush opacityMask = OpacityMaskField.GetValue(this); 1371Brush opacityMask = OpacityMaskField.GetValue(this); 3756protected internal Brush VisualOpacityMask 3768Brush opacityMask = OpacityMaskField.GetValue(this); 3774Brush newOpacityMask = value; 5408private static readonly UncommonField<Brush> OpacityMaskField = new UncommonField<Brush>();
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
313public static Brush GetOpacityMask(Visual reference)
Core\CSharp\System\Windows\Media3D\DiffuseMaterial.cs (1)
55public DiffuseMaterial(Brush brush)
Core\CSharp\System\Windows\Media3D\EmissiveMaterial.cs (1)
51public EmissiveMaterial(Brush brush)
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (11)
124Brush oldV = (Brush) e.OldValue; 125Brush newV = (Brush) e.NewValue; 185public Brush Brush 189return (Brush) GetValue(BrushProperty); 244Brush vBrush = Brush; 271Brush vBrush = Brush; 290Brush vBrush = Brush; 381internal static Brush s_Brush = null; 428typeof(Brush),
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (11)
117Brush oldV = (Brush) e.OldValue; 118Brush newV = (Brush) e.NewValue; 163public Brush Brush 167return (Brush) GetValue(BrushProperty); 222Brush vBrush = Brush; 248Brush vBrush = Brush; 267Brush vBrush = Brush; 353internal static Brush s_Brush = null; 391typeof(Brush),
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (11)
117Brush oldV = (Brush) e.OldValue; 118Brush newV = (Brush) e.NewValue; 170public Brush Brush 174return (Brush) GetValue(BrushProperty); 244Brush vBrush = Brush; 271Brush vBrush = Brush; 290Brush vBrush = Brush; 380internal static Brush s_Brush = null; 419typeof(Brush),
Core\CSharp\System\Windows\Media3D\SpecularMaterial.cs (1)
52public SpecularMaterial(Brush brush, double specularPower)
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
491Brush internalBrush = (CacheMode as BitmapCache != null) ? (Brush)InternalBitmapCacheBrush : (Brush)InternalVisualBrush;
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (1)
96public Brush OpacityMask
Core\CSharp\System\Windows\UIElement.cs (3)
2742= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2756public Brush OpacityMask 2758get { return (Brush) GetValue(OpacityMaskProperty); }
PresentationFramework (259)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1204private Brush OwnerColor
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (2)
169public Brush HighlightBrush 179public static DependencyProperty HighlightBrushProperty = DependencyProperty.Register("HighlightBrushProperty", typeof(Brush), typeof(HighlightComponent));
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (2)
317public Brush MarkerBrush 327public static DependencyProperty MarkerBrushProperty = DependencyProperty.Register("MarkerBrushProperty", typeof (Brush), typeof(MarkedHighlightComponent));
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
443private Brush _adornerFillBrush;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (4)
219Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 476Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
30Brush _brush = null;
src\Framework\MS\Internal\PtsHost\ColumnPropertiesGroup.cs (3)
39_columnRuleBrush = (Brush)o.GetValue(FlowDocument.ColumnRuleBrushProperty); 76internal Brush ColumnRuleBrush { get { return _columnRuleBrush; } } 77private Brush _columnRuleBrush;
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
228Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
416Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (2)
420Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
666this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 885this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (2)
72Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (3)
107_borderBrush = (Brush)block.GetValue(Block.BorderBrushProperty); 327internal Brush BorderBrush 380private Brush _borderBrush;
src\Framework\MS\Internal\PtsHost\PageVisual.cs (2)
44internal void DrawBackground(Brush backgroundBrush, Rect renderBounds) 179private Brush _backgroundBrush;
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\MS\Internal\PtsHost\SectionVisual.cs (2)
109Brush columnRuleBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(columnProperties.ColumnRuleBrush);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
341Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (8)
247Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 1873Brush columnBackgroundBrush; 1954Brush rowGroupBackgroundBrush; 1967rowGroupBackgroundBrush = (Brush)tableRowGroup.GetValue(TextElement.BackgroundProperty); 1986rowGroupBackgroundBrush = (Brush)tableRowGroup.GetValue(TextElement.BackgroundProperty); 2019Brush rowBackgroundBrush = (Brush)row.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
144Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (6)
234internal static Brush GetBackgroundBrush(DependencyObject element) 237Brush backgroundBrush = null; 244backgroundBrush = (Brush)element.GetValue(TextElement.BackgroundProperty); 256internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position) 259Brush backgroundBrush; 267backgroundBrush = (Brush)position.GetValue(TextElement.BackgroundProperty);
src\Framework\MS\Internal\Text\TextProperties.cs (7)
70public override Brush ForegroundBrush { get { return _foreground; } } 75public override Brush BackgroundBrush { get { return _backgroundBrush; } } 210_foreground = (Brush) target.GetValue(TextElement.ForegroundProperty); 312internal void SetBackgroundBrush(Brush backgroundBrush) 321internal void SetForegroundBrush(Brush foregroundBrush) 339private Brush _foreground; 359private Brush _backgroundBrush;
src\Framework\MS\Internal\Text\TextSpanModifier.cs (7)
33private Brush _modifierBrush; 42public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush) 54public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 100Brush brush = _modifierBrush; 156private TextDecorationCollection CopyTextDecorations(TextDecorationCollection textDecorations, Brush brush) 215public override Brush ForegroundBrush 220public override Brush BackgroundBrush
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (3)
63public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 304CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 932private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create)
src\Framework\System\Windows\Controls\AccessText.cs (4)
241public Brush Foreground 243get { return (Brush) GetValue(ForegroundProperty); } 261public Brush Background 263get { return (Brush) GetValue(BackgroundProperty); }
src\Framework\System\Windows\Controls\Border.cs (11)
109public Brush BorderBrush 111get { return (Brush) GetValue(BorderBrushProperty); } 118public Brush Background 120get { return (Brush) GetValue(BackgroundProperty); } 182= DependencyProperty.Register("BorderBrush", typeof(Brush), typeof(Border), 184(Brush)null, 196(Brush)null, 289Brush borderBrush = BorderBrush; 381Brush brush; 399Brush borderBrush; 573Brush background = Background;
src\Framework\System\Windows\Controls\Control.cs (6)
87public Brush BorderBrush 89get { return (Brush) GetValue(BorderBrushProperty); } 132public Brush Background 134get { return (Brush) GetValue(BackgroundProperty); } 156public Brush Foreground 158get { return (Brush) GetValue(ForegroundProperty); }
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)));
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (2)
396public Brush Foreground 398get { return (Brush)GetValue(ForegroundProperty); }
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
369public Brush SelectionBrush 371get { return (Brush)GetValue(SelectionBrushProperty); }
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
320public Brush SelectionBrush 322get { return (Brush)GetValue(SelectionBrushProperty); }
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
426public Brush Background 428get { return (Brush) GetValue(BackgroundProperty); }
src\Framework\System\Windows\Controls\Page.cs (4)
348public Brush Background 350get { return (Brush) GetValue(BackgroundProperty); } 467public Brush Foreground 469get { return (Brush) GetValue(ForegroundProperty); }
src\Framework\System\Windows\Controls\Panel.cs (5)
68Brush background = Background; 134public Brush Background 136get { return (Brush) GetValue(BackgroundProperty); } 146typeof(Brush), 148new FrameworkPropertyMetadata((Brush)null,
src\Framework\System\Windows\Controls\PasswordBox.cs (6)
301public Brush SelectionBrush 303get { return (Brush)GetValue(SelectionBrushProperty); } 316public Brush SelectionTextBrush 318get { return (Brush)GetValue(SelectionTextBrushProperty); } 346public Brush CaretBrush 348get { return (Brush)GetValue(CaretBrushProperty); }
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
65(Brush)null, 71public Brush Background 73get { return (Brush)GetValue(BackgroundProperty); } 200Brush background = this.Background;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
73public Brush SeparatorBrush 75get { return (Brush)GetValue(SeparatorBrushProperty); } 83DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null));
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (3)
151public Brush SeparatorBrush 153get { return (Brush)GetValue(SeparatorBrushProperty); } 161DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridRowHeader), new FrameworkPropertyMetadata(null));
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (13)
813DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 819public Brush SelectionBrush 821get { return (Brush)GetValue(SelectionBrushProperty); } 832DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 838public Brush SelectionTextBrush 840get { return (Brush)GetValue(SelectionTextBrushProperty); } 883DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 889public Brush CaretBrush 891get { return (Brush)GetValue(CaretBrushProperty); } 1964private static Brush GetDefaultSelectionBrush() 1966Brush selectionBrush = new SolidColorBrush(SystemColors.HighlightColor); 1974private static Brush GetDefaultSelectionTextBrush() 1976Brush selectionTextBrush = new SolidColorBrush(SystemColors.HighlightTextColor);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (4)
97typeof(Brush), 100(Brush)null, 109public Brush Fill 113return (Brush)GetValue(FillProperty);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
214public Brush SelectionBrush 216get { return (Brush)GetValue(SelectionBrushProperty); }
src\Framework\System\Windows\Controls\TextBlock.cs (8)
893public Brush Foreground 895get { return (Brush) GetValue(ForegroundProperty); } 904public static void SetForeground(DependencyObject element, Brush value) 918public static Brush GetForeground(DependencyObject element) 925return (Brush)element.GetValue(ForegroundProperty); 942public Brush Background 944get { return (Brush) GetValue(BackgroundProperty); } 1585Brush background = this.Background;
src\Framework\System\Windows\Controls\ToolBarTray.cs (4)
83(Brush)null, 89public Brush Background 91get { return (Brush)GetValue(BackgroundProperty); } 343Brush background = this.Background;
src\Framework\System\Windows\Documents\AnchoredBlock.cs (2)
167public Brush BorderBrush 169get { return (Brush)GetValue(BorderBrushProperty); }
src\Framework\System\Windows\Documents\Block.cs (3)
199typeof(Brush), 208public Brush BorderBrush 210get { return (Brush)GetValue(BorderBrushProperty); }
src\Framework\System\windows\Documents\CaretElement.cs (5)
133Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 243internal void Update(bool visible, Rect caretRectangle, Brush caretBrush, double opacity, bool italic, CaretScrollMethod scrollMethod, double scrollToOriginPosition) 623internal void UpdateCaretBrush(Brush caretBrush) 1299private Brush _caretBrush;
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
170Brush selectionBrush = null; 177selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty);
src\Framework\System\Windows\Documents\FixedDocument.cs (2)
1136Brush foreground = null; 1137Brush background = null;
src\Framework\System\Windows\Documents\FixedHighlight.cs (6)
44Brush foreground, Brush background) 212internal Brush ForegroundBrush 220internal Brush BackgroundBrush 241private readonly Brush _backgroundBrush; // highlight background brush 242private readonly Brush _foregroundBrush; // highlight foreground brush
src\Framework\System\Windows\Documents\FixedPage.cs (4)
157Brush background = this.Background; 435public Brush Background 437get { return (Brush) GetValue(BackgroundProperty); } 447new FrameworkPropertyMetadata((Brush)Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
387public Brush Foreground 430private Brush _foreground;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (2)
415Brush foregroundBrush, Brush backgroundBrush)
src\Framework\System\Windows\Documents\FlowDocument.cs (7)
296public Brush Foreground 298get { return (Brush) GetValue(ForegroundProperty); } 315public Brush Background 317get { return (Brush) GetValue(BackgroundProperty); } 505typeof(Brush), 514public Brush ColumnRuleBrush 516get { return (Brush)GetValue(ColumnRuleBrushProperty); }
src\Framework\System\Windows\Documents\Glyphs.cs (4)
746typeof(Brush), 749(Brush)null, 758public Brush Fill 762return (Brush)GetValue(FillProperty);
src\Framework\System\Windows\Documents\HighlightVisual.cs (3)
182Brush highlightBrush = null; 188Brush bg = null; 283Brush fg = null;
src\Framework\System\Windows\Documents\ListItem.cs (2)
211public Brush BorderBrush 213get { return (Brush)GetValue(BorderBrushProperty); }
src\Framework\System\windows\Documents\SelectionHighlightInfo.cs (4)
52internal static Brush ForegroundBrush 63internal static Brush BackgroundBrush 74internal static Brush ObjectMaskBrush 93private static readonly Brush _objectMaskBrush;
src\Framework\System\Windows\Documents\TableCell.cs (2)
242public Brush BorderBrush 244get { return (Brush)GetValue(BorderBrushProperty); }
src\Framework\System\Windows\Documents\TableColumn.cs (2)
82public Brush Background 84get { return (Brush) GetValue(BackgroundProperty); }
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
444Brush caretBrush = TextSelection.GetCaretBrush(_textEditor);
src\Framework\System\Windows\Documents\TextElement.cs (10)
731typeof(Brush), 742public Brush Foreground 744get { return (Brush) GetValue(ForegroundProperty); } 753public static void SetForeground(DependencyObject element, Brush value) 767public static Brush GetForeground(DependencyObject element) 774return (Brush)element.GetValue(ForegroundProperty); 783typeof(Brush), 785new FrameworkPropertyMetadata((Brush)null, 791public Brush Background 793get { return (Brush) GetValue(BackgroundProperty); }
src\Framework\System\Windows\Documents\TextSchema.cs (5)
644else if (value1 is Brush) 646return AreBrushesEqual((Brush)value1, (Brush)value2); 917private static bool AreBrushesEqual(Brush brush1, Brush brush2)
src\Framework\System\windows\Documents\TextSelection.cs (4)
1622internal static Brush GetCaretBrush(TextEditor textEditor) 1629Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2157Brush caretBrush = GetCaretBrush(_textEditor);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
144case 52: t = () => typeof(Brush); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7846Type type = typeof(System.Windows.Media.Brush); 7847DependencyProperty dp = System.Windows.Media.Brush.OpacityProperty; 7849this.GetXamlType(typeof(System.Windows.Media.Brush)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2252typeof(System.Windows.Media.Brush),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5596case KnownElements.Brush: t = typeof(System.Windows.Media.Brush); break;
src\Framework\System\Windows\Shapes\Shape.cs (8)
128typeof(Brush), 131(Brush) null, 138public Brush Fill 140get { return (Brush) GetValue(FillProperty); } 151typeof(Brush), 154(Brush) null, 163public Brush Stroke 165get { return (Brush) GetValue(StrokeProperty); }
src\Framework\System\Windows\SystemParameters.cs (2)
6283public static Brush WindowGlassBrush 6575private static Brush _windowGlassBrush;
PresentationFramework.Aero (58)
Microsoft\Windows\Themes\BulletChrome.cs (18)
71public Brush Background 73get { return (Brush) GetValue(BackgroundProperty); } 91public Brush BorderBrush 93get { return (Brush) GetValue(BorderBrushProperty); } 420chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 421chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 451chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 452chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 519chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 520chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 524chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 533chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 634Brush fill = Background; 675Brush innerFill = InnerFill; 781private static Pen GetBorderPen(Brush border) 1790private Brush BackgroundOverlay 2147private Brush GlyphFill 2425public Brush GlyphFill;
Microsoft\Windows\Themes\ButtonChrome.cs (9)
69public Brush Background 71get { return (Brush) GetValue(BackgroundProperty); } 89public Brush BorderBrush 91get { return (Brush) GetValue(BorderBrushProperty); } 499Brush fill = Background; 523Brush leftShadow = LeftDropShadowBrush; 530Brush topShadow = TopDropShadowBrush; 544Brush border = BorderBrush; 770private Brush BackgroundOverlay
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
170Brush sideBrush; 177sideBrush = (Brush)GetCachedFreezable((int)sideType);
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
66public Brush Background 68get { return (Brush) GetValue(BackgroundProperty); } 86public Brush BorderBrush 88get { return (Brush) GetValue(BorderBrushProperty); } 154chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 167chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 340Brush fill = Background; 421private static Pen GetBorderPen(Brush border) 627private Brush BackgroundOverlay
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
42!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 53Brush brush = (Brush)values[0];
Microsoft\Windows\Themes\ScrollChrome.cs (7)
485Brush brush = Fill; 518Brush brush = Glyph; 542private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 546Brush glyphShadow = GlyphShadow; 565private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 569Brush glyphShadow = GlyphShadow; 720private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
137public Brush SeparatorBrush 139get { return (Brush)GetValue(SeparatorBrushProperty); } 147DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
128Brush[] brushes = GetBrushes(color, cornerRadius); 331private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 333Brush[] brushes = new Brush[9]; 436private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 482private static Brush[] _commonBrushes; 487private Brush[] _brushes;
PresentationFramework.Classic (41)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (19)
154(Brush) null, 161public Brush Background 163get { return (Brush) GetValue(BackgroundProperty); } 512private static Brush _classicBorderBrush; 515public static Brush ClassicBorderBrush 541typeof(Brush), 550public Brush BorderBrush 552get { return (Brush) GetValue(BorderBrushProperty); } 757Brush borderBrush = BorderBrush; 836Brush background = Background; 926private static bool IsSimpleBorderBrush(Brush borderBrush) 934private void DrawBorder(Brush borderBrush, Thickness borderThickness, DrawingContext dc, ref Rect bounds) 988private void DrawBorderPair(Brush highlight, Brush shadow, Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1030Brush dark = DarkBrush, lightLight = LightLightBrush; 1350private Brush LightBrush 1359private Brush LightLightBrush 1368private Brush DarkBrush 1377private Brush DarkDarkBrush
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (9)
36DependencyProperty.Register("ControlBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender)); 38private Brush EnsureControlBrush() 45return (Brush)GetValue(ControlBrushProperty); 56Brush background = EnsureControlBrush(); 57Brush light = SystemColors.ControlLightBrush; 58Brush dark = SystemColors.ControlDarkBrush; 63Brush darkDarkRight = null; 81Brush darkDarkBottom = null; 191Brush sortArrowColor =
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
137public Brush SeparatorBrush 139get { return (Brush)GetValue(SeparatorBrushProperty); } 147DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 65Brush brush = (Brush)values[0];
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
128Brush[] brushes = GetBrushes(color, cornerRadius); 331private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 333Brush[] brushes = new Brush[9]; 436private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 482private static Brush[] _commonBrushes; 487private Brush[] _brushes;
PresentationFramework.Luna (43)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
221public Brush Fill 223get { return (Brush) GetValue(FillProperty); } 240public Brush BorderBrush 242get { return (Brush) GetValue(BorderBrushProperty); } 429Brush brush = Background; 450Brush brush = TopShade; 647Brush brush = BorderBrush; 1433private Brush Background
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
262Brush sideBrush;
Microsoft\Windows\Themes\ScrollChrome.cs (10)
325Brush brush = Fill; 359Brush brush = Glyph; 384private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 388Brush glyphShadow = GlyphShadow; 406private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 410Brush glyphShadow = GlyphShadow; 572private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph) 1279private Brush Fill 1619private Brush Glyph 1843private Brush GlyphShadow
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
57public Brush Background 59get { return (Brush) GetValue(BackgroundProperty); } 77public Brush BorderBrush 79get { return (Brush) GetValue(BorderBrushProperty); } 241Brush fill = BackgroundBrush; 285Brush glyphFill = GlyphFill; 356Brush borderBrush = Border; 379private static Pen GetBorderPen(Brush border) 660private Brush Border 759private Brush BackgroundBrush 883private Brush GlyphFill
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
137public Brush SeparatorBrush 139get { return (Brush)GetValue(SeparatorBrushProperty); } 147DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 65Brush brush = (Brush)values[0];
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
128Brush[] brushes = GetBrushes(color, cornerRadius); 331private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 333Brush[] brushes = new Brush[9]; 436private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 482private static Brush[] _commonBrushes; 487private Brush[] _brushes;
PresentationFramework.Royale (43)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
179public Brush Fill 181get { return (Brush) GetValue(FillProperty); } 198public Brush BorderBrush 200get { return (Brush) GetValue(BorderBrushProperty); } 350Brush brush = Background; 371Brush brush = TopShade; 506Brush brush = BorderBrush; 937private Brush Background
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
184Brush sideBrush;
Microsoft\Windows\Themes\ScrollChrome.cs (10)
285Brush brush = Fill; 319Brush brush = Glyph; 344private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 348Brush glyphShadow = GlyphShadow; 366private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 370Brush glyphShadow = GlyphShadow; 532private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph) 798private Brush Fill 914private Brush Glyph 982private Brush GlyphShadow
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
57public Brush Background 59get { return (Brush) GetValue(BackgroundProperty); } 77public Brush BorderBrush 79get { return (Brush) GetValue(BorderBrushProperty); } 241Brush fill = BackgroundBrush; 285Brush glyphFill = GlyphFill; 356Brush borderBrush = Border; 379private static Pen GetBorderPen(Brush border) 660private Brush Border 759private Brush BackgroundBrush 883private Brush GlyphFill
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
137public Brush SeparatorBrush 139get { return (Brush)GetValue(SeparatorBrushProperty); } 147DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
52!typeof(Brush).IsAssignableFrom(values[0].GetType()) || 65Brush brush = (Brush)values[0];
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
128Brush[] brushes = GetBrushes(color, cornerRadius); 331private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 333Brush[] brushes = new Brush[9]; 436private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 482private static Brush[] _commonBrushes; 487private Brush[] _brushes;
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (3)
28DependencyProperty.Register("ExpressionButtonColor", typeof(Brush), typeof(FlowDecisionDesigner)); 97public Brush ExpressionButtonColor 99get { return (Brush)GetValue(ExpressionButtonColorProperty); }
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (3)
33DependencyProperty.Register("ExpressionButtonColor", typeof(Brush), typeof(FlowSwitchDesigner)); 102public Brush ExpressionButtonColor 104get { return (Brush)GetValue(ExpressionButtonColorProperty); }
System.Activities.Presentation (24)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (4)
59public static readonly DependencyProperty DropButtonBrushProperty = DependencyProperty.Register("DropButtonBrush", typeof(Brush), typeof(ChoiceEditor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender)); 243public Brush DropButtonBrush 245get { return (Brush)this.GetValue(ChoiceEditor.DropButtonBrushProperty); } 889Brush dropButtonBrush = this.DropButtonBrush;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (1)
17public static bool DrawInscribedRoundedRect(DrawingContext drawingContext, Brush fill, Pen stroke, Rect outerBounds, double cornerRadius)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
281Brush borderBrush = this.BorderBrush;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (10)
27typeof(Brush), 29new FrameworkPropertyMetadata((Brush)null, 35typeof(Brush), 37new FrameworkPropertyMetadata((Brush)null, 124public Brush OutlineBrush 126get { return (Brush)GetValue(OutlineBrushProperty); } 138public Brush SelectionBrush 140get { return (Brush)GetValue(SelectionBrushProperty); } 245Brush outlineBrush = this.OutlineBrush; 251Brush selectionBrush = this.SelectionBrush;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (8)
308public static Brush DesignerViewExpandAllCollapseAllButtonBrush 313public static Brush DesignerViewExpandAllCollapseAllButtonMouseOverBrush 318public static Brush DesignerViewExpandAllCollapseAllPressedBrush 431public static Brush FlowchartExpressionButtonBrush 436public static Brush FlowchartExpressionButtonMouseOverBrush 441public static Brush FlowchartExpressionButtonPressedBrush 560internal static Brush RubberBandRectangleBrush 565private static Brush GetBrush(string colorKey)