10 types derived from Brush
PresentationCore (10)
System\Windows\Media\BitmapCacheBrush.cs (1)
20public partial class BitmapCacheBrush : Brush, ICyclicBrush
System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
43sealed partial class ImplicitInputBrush : Brush
System\Windows\Media\Effects\ImplicitInputBrush.cs (1)
13internal partial class ImplicitInputBrush : Brush
System\Windows\Media\Generated\BitmapCacheBrush.cs (1)
45sealed partial class BitmapCacheBrush : Brush
System\Windows\Media\Generated\GradientBrush.cs (1)
45abstract partial class GradientBrush : Brush
System\Windows\Media\Generated\SolidColorBrush.cs (1)
45sealed partial class SolidColorBrush : Brush
System\Windows\Media\Generated\TileBrush.cs (1)
45abstract partial class TileBrush : Brush
System\Windows\Media\GradientBrush.cs (1)
35public abstract partial class GradientBrush : Brush
System\Windows\Media\SolidColorBrush.cs (1)
38public sealed partial class SolidColorBrush : Brush
System\Windows\Media\TileBrush.cs (1)
34public abstract partial class TileBrush : Brush
1009 references to Brush
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
Adornments\BrushTag.cs (2)
25private Brush? _brush; 30public Brush GetBrush(IWpfTextView view)
InlineHints\InlineHintsTag.cs (1)
149var brush = properties.ForegroundBrush.Clone();
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (4)
102var resolvableConflictBrush = GetEditorTagBorderBrush(RenameFixupTag.TagId); 106var unresolvableConflictBrush = GetEditorTagBorderBrush(RenameConflictTag.TagId); 113private Brush GetEditorTagBorderBrush(string tagId) 116return (Brush)(properties["Foreground"] ?? ((Pen)properties["MarkerFormatDefinition/BorderId"]).Brush);
StringIndentation\StringIndentationAdornmentManager.cs (1)
69var brush = tagMappingSpan.Tag.GetBrush(TextView);
Utilities\BrushToColorConverter.cs (2)
12internal class BrushToColorConverter : ValueConverter<Brush, Color> 14protected override Color Convert(Brush brush, object parameter, CultureInfo culture)
Microsoft.VisualStudio.LanguageServices (10)
ChangeSignature\ChangeSignatureDialog.xaml.cs (5)
39public Brush ParameterText { get; } 40public Brush RemovedParameterText { get; } 41public Brush DisabledParameterForeground { get; } 42public Brush DisabledParameterBackground { get; } 43public Brush StrikethroughBrush { get; }
DebuggerIntelliSense\DebuggerTextView.cs (1)
253public Brush Background
FindReferences\Entries\DocumentSpanEntry.cs (1)
131if (properties["Background"] is Brush highlightBrush)
ValueTracking\ValueTrackingTreeViewModel.cs (3)
18private Brush? _highlightBrush; 19public Brush? HighlightBrush 90HighlightBrush = properties["Background"] as Brush;
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
Venus\DocumentService_IntegrationTests.vb (8)
599Public Property SelectedItemActiveBackground As Brush Implements IWpfTableControl2.SelectedItemActiveBackground 603Set(value As Brush) 608Public Property SelectedItemActiveForeground As Brush Implements IWpfTableControl2.SelectedItemActiveForeground 612Set(value As Brush) 617Public Property SelectedItemInactiveBackground As Brush Implements IWpfTableControl2.SelectedItemInactiveBackground 621Set(value As Brush) 626Public Property SelectedItemInactiveForeground As Brush Implements IWpfTableControl2.SelectedItemInactiveForeground 630Set(value As Brush)
PresentationCore (245)
MS\Internal\TextFormatting\FormattedTextSymbols.cs (2)
429public Brush ForegroundBrush 434public Brush BackgroundBrush
MS\Internal\TextFormatting\FullTextLine.cs (2)
67private Brush _defaultTextDecorationsBrush; // Default brush for paragraph text decorations 2612internal Brush DefaultTextDecorationsBrush
MS\Internal\TextFormatting\GenericTextProperties.cs (6)
47Brush foregroundBrush, 48Brush backgroundBrush, 151public override Brush ForegroundBrush 160public override Brush BackgroundBrush 212private Brush _foregroundBrush; 213private Brush _backgroundBrush;
MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1113Brush foregroundBrush, 1198Brush foregroundBrush, // default brush if text decoration has no pen
MS\Internal\TextFormatting\LineServicesRun.cs (1)
244Brush foregroundBrush,
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1752Brush foregroundBrush = TextRun.Properties.ForegroundBrush;
MS\Internal\TextFormatting\TextProperties.cs (1)
159internal Brush DefaultTextDecorationsBrush
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
255Brush foregroundBrush,
MS\Internal\TextFormatting\TextShapeableSymbols.cs (1)
152Brush foregroundBrush,
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
745Brush fillBrush)
System\Windows\Media\BoundsDrawingContextWalker.cs (6)
118Brush brush, 164Brush brush, 214Brush brush, 254Brush brush, 315public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 337Brush brush)
System\Windows\Media\Brush.cs (3)
66internal static Brush Parse(string value, ITypeDescriptorContext context) 68Brush brush; 75brush = (Brush)freezer.TryGetFreezable(value);
System\Windows\Media\ContainerVisual.cs (1)
82public Brush OpacityMask
System\Windows\Media\Converters\Generated\BrushValueSerializer.cs (7)
63if (!(value is Brush)) 68Brush instance = (Brush) value; 81return Brush.Parse(value, context ); 94if (value is Brush) 96Brush instance = (Brush) value;
System\Windows\Media\DrawingDrawingContext.cs (10)
153Brush brush, 181Brush brush, 257Brush brush, 297Brush brush, 391Brush brush, 433Brush brush, 516Brush brush, 771public override void PushOpacityMask(Brush brush) 1081public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 1298private void AddNewGeometryDrawing(Brush brush, Pen pen, Geometry geometry)
System\Windows\Media\Effects\Effect.cs (1)
42public static Brush ImplicitInput
System\Windows\Media\Effects\ShaderEffect.cs (5)
342DependencyProperty.Register(dpName, typeof(Brush), ownerType, 469_brush = (Brush)newValue, 539Brush oldBrush = null; 547Brush newBrush = newSampler._brush; 1093public Brush _brush;
System\Windows\Media\FormattedText.cs (9)
56Brush foreground) : this( 86Brush foreground, 120Brush foreground, 152Brush foreground, 186Brush foreground, 211Brush foreground, 220double emSize, Brush foreground, NumberSubstitution numberSubstitution, TextFormattingMode textFormattingMode, double pixelsPerDip) 327public void SetForegroundBrush(Brush foregroundBrush) 338public void SetForegroundBrush(Brush foregroundBrush, int startIndex, int count)
System\Windows\Media\Generated\Brush.cs (11)
61public new Brush Clone() 63return (Brush)base.Clone(); 70public new Brush CloneCurrentValue() 72return (Brush)base.CloneCurrentValue(); 88Brush target = ((Brush) d); 110Brush target = ((Brush) d); 154Brush target = ((Brush) d); 457Type typeofThis = typeof(Brush);
System\Windows\Media\Generated\BrushConverter.cs (7)
81if (!(context.Instance is Brush)) 86Brush value = (Brush)context.Instance; 122return Brush.Parse(source, context); 144if (destinationType != null && value is Brush) 146Brush instance = (Brush)value;
System\Windows\Media\Generated\DrawingContext.cs (9)
82Brush brush, 102Brush brush, 130Brush brush, 162Brush brush, 196Brush brush, 230Brush brush, 254Brush brush, 299Brush foregroundBrush, 354Brush opacityMask);
System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (9)
98Brush brush, 125Brush brush, 160Brush brush, 201Brush brush, 246Brush brush, 289Brush brush, 324Brush brush, 388Brush foregroundBrush, 471Brush opacityMask)
System\Windows\Media\Generated\DrawingContextWalker.cs (9)
89Brush brush, 112Brush brush, 143Brush brush, 178Brush brush, 215Brush brush, 252Brush brush, 279Brush brush, 333Brush foregroundBrush, 406Brush opacityMask)
System\Windows\Media\Generated\DrawingGroup.cs (10)
242Brush oldV = (Brush) e.OldValue; 243Brush newV = (Brush) e.NewValue; 441public Brush OpacityMask 445return (Brush) GetValue(OpacityMaskProperty); 556Brush vOpacityMask = OpacityMask; 629Brush vOpacityMask = OpacityMask; 662Brush vOpacityMask = OpacityMask; 900typeof(Brush),
System\Windows\Media\Generated\GeometryDrawing.cs (10)
104Brush oldV = (Brush) e.OldValue; 105Brush newV = (Brush) e.NewValue; 223public Brush Brush 227return (Brush) GetValue(BrushProperty); 306Brush vBrush = Brush; 336Brush vBrush = Brush; 357Brush vBrush = Brush; 462typeof(Brush),
System\Windows\Media\Generated\GlyphRunDrawing.cs (10)
133Brush oldV = (Brush) e.OldValue; 134Brush newV = (Brush) e.NewValue; 179public Brush ForegroundBrush 183return (Brush) GetValue(ForegroundBrushProperty); 233Brush vForegroundBrush = ForegroundBrush; 261Brush vForegroundBrush = ForegroundBrush; 280Brush vForegroundBrush = ForegroundBrush; 386typeof(Brush),
System\Windows\Media\Generated\Pen.cs (10)
104Brush oldV = (Brush) e.OldValue; 105Brush newV = (Brush) e.NewValue; 221public Brush Brush 225return (Brush) GetValue(BrushProperty); 379Brush vBrush = Brush; 421Brush vBrush = Brush; 443Brush vBrush = Brush; 580typeof(Brush),
System\Windows\Media\Generated\RenderData.cs (18)
1179(Brush)DependentLookup(data->hBrush), 1191(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush), 1203(Brush)DependentLookup(data->hBrush), 1217(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush), 1231(Brush)DependentLookup(data->hBrush), 1245(data->hBrush == 0) ? null : (Brush)DependentLookup(data->hBrush), 1259(Brush)DependentLookup(data->hBrush), 1293(Brush)DependentLookup(data->hForegroundBrush), 1346(Brush)DependentLookup(data->hOpacityMask) 1521(Brush)DependentLookup(data->hBrush), 1533(Brush)DependentLookup(data->hBrush), 1546(Brush)DependentLookup(data->hBrush), 1560(Brush)DependentLookup(data->hBrush), 1577(Brush)DependentLookup(data->hBrush), 1591(Brush)DependentLookup(data->hBrush), 1608(Brush)DependentLookup(data->hBrush), 1643(Brush)DependentLookup(data->hForegroundBrush), 1697(Brush)DependentLookup(data->hOpacityMask)
System\Windows\Media\Generated\RenderDataDrawingContext.cs (9)
156Brush brush, 210Brush brush, 275Brush brush, 343Brush brush, 422Brush brush, 492Brush brush, 561Brush brush, 709Brush foregroundBrush, 928Brush opacityMask)
System\Windows\Media\Generated\TextEffect.cs (3)
142public Brush Foreground 146return (Brush) GetValue(ForegroundProperty); 330typeof(Brush),
System\Windows\Media\GeometryDrawing.cs (1)
38public GeometryDrawing(Brush brush, Pen pen, Geometry geometry)
System\Windows\Media\GlyphRun.cs (1)
1673internal void EmitBackground(DrawingContext dc, Brush backgroundBrush)
System\Windows\Media\GlyphRunDrawing.cs (1)
35public GlyphRunDrawing(Brush foregroundBrush, GlyphRun glyphRun)
System\Windows\Media\HitTestDrawingContextWalker.cs (3)
83Brush brush, 114Brush brush, 149Brush brush,
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (3)
116Brush brush, 174public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 240public override void PushOpacityMask(Brush brush)
System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (3)
79Brush brush, 114public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) 166public override void PushOpacityMask(Brush brush)
System\Windows\Media\Parsers.cs (1)
254internal static Brush ParseBrush(string brush, IFormatProvider formatProvider, ITypeDescriptorContext context)
System\Windows\Media\Pen.cs (2)
49public Pen(Brush brush, 68Brush brush,
System\Windows\Media\SolidColorBrush.cs (1)
198|| !DoubleUtil.AreClose(Opacity, Brush.c_Opacity))
System\Windows\Media\TextEffect.cs (1)
48Brush foreground,
System\Windows\Media\textformatting\TextRunProperties.cs (2)
61public abstract Brush ForegroundBrush 68public abstract Brush BackgroundBrush
System\Windows\Media\Visual.cs (7)
782Brush opacityMask = OpacityMaskField.GetValue(this); 1361Brush opacityMask = OpacityMaskField.GetValue(this); 3726protected internal Brush VisualOpacityMask 3738Brush opacityMask = OpacityMaskField.GetValue(this); 3744Brush newOpacityMask = value; 5361private static readonly UncommonField<Brush> OpacityMaskField = new UncommonField<Brush>();
System\Windows\Media\VisualTreeHelper.cs (1)
298public static Brush GetOpacityMask(Visual reference)
System\Windows\Media3D\DiffuseMaterial.cs (1)
48public DiffuseMaterial(Brush brush)
System\Windows\Media3D\EmissiveMaterial.cs (1)
49public EmissiveMaterial(Brush brush)
System\Windows\Media3D\Generated\DiffuseMaterial.cs (11)
114Brush oldV = (Brush) e.OldValue; 115Brush newV = (Brush) e.NewValue; 175public Brush Brush 179return (Brush) GetValue(BrushProperty); 228Brush vBrush = Brush; 254Brush vBrush = Brush; 271Brush vBrush = Brush; 360internal static Brush s_Brush = null; 407typeof(Brush),
System\Windows\Media3D\Generated\EmissiveMaterial.cs (11)
107Brush oldV = (Brush) e.OldValue; 108Brush newV = (Brush) e.NewValue; 153public Brush Brush 157return (Brush) GetValue(BrushProperty); 206Brush vBrush = Brush; 231Brush vBrush = Brush; 248Brush vBrush = Brush; 332internal static Brush s_Brush = null; 370typeof(Brush),
System\Windows\Media3D\Generated\SpecularMaterial.cs (11)
107Brush oldV = (Brush) e.OldValue; 108Brush newV = (Brush) e.NewValue; 160public Brush Brush 164return (Brush) GetValue(BrushProperty); 228Brush vBrush = Brush; 254Brush vBrush = Brush; 271Brush vBrush = Brush; 359internal static Brush s_Brush = null; 398typeof(Brush),
System\Windows\Media3D\SpecularMaterial.cs (1)
50public SpecularMaterial(Brush brush, double specularPower)
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
482Brush internalBrush = (CacheMode as BitmapCache != null) ? (Brush)InternalBitmapCacheBrush : (Brush)InternalVisualBrush;
System\Windows\Media3D\Viewport3DVisual.cs (1)
92public Brush OpacityMask
System\Windows\UIElement.cs (3)
2713= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2727public Brush OpacityMask 2729get { return (Brush) GetValue(OpacityMaskProperty); }
PresentationFramework (259)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1183private Brush OwnerColor
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
159public Brush HighlightBrush 169public static DependencyProperty HighlightBrushProperty = DependencyProperty.Register("HighlightBrushProperty", typeof(Brush), typeof(HighlightComponent));
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
303public Brush MarkerBrush 313public static DependencyProperty MarkerBrushProperty = DependencyProperty.Register("MarkerBrushProperty", typeof(Brush), typeof(MarkedHighlightComponent));
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
434private Brush _adornerFillBrush;
MS\Internal\Documents\TextBoxLine.cs (4)
217Brush selectionBrush = uiScope.GetValue(TextBoxBase.SelectionBrushProperty) as Brush; 474Brush selectionTextBrush = uiScope.GetValue(TextBoxBase.SelectionTextBrushProperty) as Brush;
MS\Internal\Ink\LassoHelper.cs (1)
29Brush _brush = null;
MS\Internal\PtsHost\ColumnPropertiesGroup.cs (3)
35_columnRuleBrush = (Brush)o.GetValue(FlowDocument.ColumnRuleBrushProperty); 72internal Brush ColumnRuleBrush { get { return _columnRuleBrush; } } 73private Brush _columnRuleBrush;
MS\Internal\PtsHost\ContainerParaClient.cs (2)
195Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\FigureParaClient.cs (2)
365Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\FloaterParaClient.cs (2)
371Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
645this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 863this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
MS\Internal\PtsHost\ListParaClient.cs (2)
62Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\MbpInfo.cs (3)
106_borderBrush = (Brush)block.GetValue(Block.BorderBrushProperty); 326internal Brush BorderBrush 379private Brush _borderBrush;
MS\Internal\PtsHost\PageVisual.cs (2)
40internal void DrawBackground(Brush backgroundBrush, Rect renderBounds) 175private Brush _backgroundBrush;
MS\Internal\PtsHost\ParagraphVisual.cs (8)
37internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 61internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 66_backgroundBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(backgroundBrush); 68_borderBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(borderBrush); 156private Brush _backgroundBrush; // Background brush 157private Brush _borderBrush; // Border brush
MS\Internal\PtsHost\SectionVisual.cs (2)
107Brush columnRuleBrush = (Brush)FreezableOperations.GetAsFrozenIfPossible(columnProperties.ColumnRuleBrush);
MS\Internal\PtsHost\SubpageParaClient.cs (2)
298Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\TableParaClient.cs (8)
227Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 1761Brush columnBackgroundBrush; 1838Brush rowGroupBackgroundBrush; 1851rowGroupBackgroundBrush = (Brush)tableRowGroup.GetValue(TextElement.BackgroundProperty); 1870rowGroupBackgroundBrush = (Brush)tableRowGroup.GetValue(TextElement.BackgroundProperty); 1898Brush rowBackgroundBrush = (Brush)row.GetValue(TextElement.BackgroundProperty);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
137Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty);
MS\Internal\Text\DynamicPropertyReader.cs (6)
231internal static Brush GetBackgroundBrush(DependencyObject element) 234Brush backgroundBrush = null; 241backgroundBrush = (Brush)element.GetValue(TextElement.BackgroundProperty); 253internal static Brush GetBackgroundBrushForInlineObject(StaticTextPointer position) 256Brush backgroundBrush; 264backgroundBrush = (Brush)position.GetValue(TextElement.BackgroundProperty);
MS\Internal\Text\TextProperties.cs (7)
67public override Brush ForegroundBrush { get { return _foreground; } } 72public override Brush BackgroundBrush { get { return _backgroundBrush; } } 207_foreground = (Brush) target.GetValue(TextElement.ForegroundProperty); 305internal void SetBackgroundBrush(Brush backgroundBrush) 314internal void SetForegroundBrush(Brush foregroundBrush) 332private Brush _foreground; 352private Brush _backgroundBrush;
MS\Internal\Text\TextSpanModifier.cs (7)
25private Brush _modifierBrush; 34public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush) 46public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 92Brush brush = _modifierBrush; 148private TextDecorationCollection CopyTextDecorations(TextDecorationCollection textDecorations, Brush brush) 207public override Brush ForegroundBrush 212public override Brush BackgroundBrush
System\Windows\Annotations\AnnotationHelper.cs (3)
58public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 298CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 924private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create)
System\Windows\Controls\AccessText.cs (4)
241public Brush Foreground 243get { return (Brush) GetValue(ForegroundProperty); } 261public Brush Background 263get { return (Brush) GetValue(BackgroundProperty); }
System\Windows\Controls\Border.cs (11)
102public Brush BorderBrush 104get { return (Brush) GetValue(BorderBrushProperty); } 111public Brush Background 113get { return (Brush) GetValue(BackgroundProperty); } 175= DependencyProperty.Register("BorderBrush", typeof(Brush), typeof(Border), 177(Brush)null, 189(Brush)null, 282Brush borderBrush = BorderBrush; 374Brush brush; 392Brush borderBrush; 564Brush background = Background;
System\Windows\Controls\Control.cs (6)
86public Brush BorderBrush 88get { return (Brush) GetValue(BorderBrushProperty); } 131public Brush Background 133get { return (Brush) GetValue(BackgroundProperty); } 155public Brush Foreground 157get { return (Brush) GetValue(ForegroundProperty); }
System\Windows\Controls\DataGrid.cs (12)
716typeof(Brush), 723public Brush HorizontalGridLinesBrush 725get { return (Brush)GetValue(HorizontalGridLinesBrushProperty); } 735typeof(Brush), 742public Brush VerticalGridLinesBrush 744get { return (Brush)GetValue(VerticalGridLinesBrushProperty); } 1045public Brush RowBackground 1047get { return (Brush)GetValue(RowBackgroundProperty); } 1055DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1063public Brush AlternatingRowBackground 1065get { return (Brush)GetValue(AlternatingRowBackgroundProperty); } 1073DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));
System\Windows\Controls\DataGridTextColumn.cs (2)
395public Brush Foreground 397get { return (Brush)GetValue(ForegroundProperty); }
System\Windows\Controls\FlowDocumentReader.cs (2)
368public Brush SelectionBrush 370get { return (Brush)GetValue(SelectionBrushProperty); }
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
319public Brush SelectionBrush 321get { return (Brush)GetValue(SelectionBrushProperty); }
System\Windows\Controls\InkCanvas.cs (2)
414public Brush Background 416get { return (Brush) GetValue(BackgroundProperty); }
System\Windows\Controls\Page.cs (4)
340public Brush Background 342get { return (Brush) GetValue(BackgroundProperty); } 459public Brush Foreground 461get { return (Brush) GetValue(ForegroundProperty); }
System\Windows\Controls\Panel.cs (5)
67Brush background = Background; 130public Brush Background 132get { return (Brush) GetValue(BackgroundProperty); } 142typeof(Brush), 144new FrameworkPropertyMetadata((Brush)null,
System\Windows\Controls\PasswordBox.cs (6)
285public Brush SelectionBrush 287get { return (Brush)GetValue(SelectionBrushProperty); } 300public Brush SelectionTextBrush 302get { return (Brush)GetValue(SelectionTextBrushProperty); } 330public Brush CaretBrush 332get { return (Brush)GetValue(CaretBrushProperty); }
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
65(Brush)null, 71public Brush Background 73get { return (Brush)GetValue(BackgroundProperty); } 200Brush background = this.Background;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (3)
72public Brush SeparatorBrush 74get { return (Brush)GetValue(SeparatorBrushProperty); } 82DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null));
System\Windows\Controls\Primitives\DataGridRowHeader.cs (3)
150public Brush SeparatorBrush 152get { return (Brush)GetValue(SeparatorBrushProperty); } 160DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridRowHeader), new FrameworkPropertyMetadata(null));
System\Windows\Controls\Primitives\TextBoxBase.cs (13)
790DependencyProperty.Register("SelectionBrush", typeof(Brush), typeof(TextBoxBase), 796public Brush SelectionBrush 798get { return (Brush)GetValue(SelectionBrushProperty); } 809DependencyProperty.Register("SelectionTextBrush", typeof(Brush), typeof(TextBoxBase), 815public Brush SelectionTextBrush 817get { return (Brush)GetValue(SelectionTextBrushProperty); } 860DependencyProperty.Register("CaretBrush", typeof(Brush), typeof(TextBoxBase), 866public Brush CaretBrush 868get { return (Brush)GetValue(CaretBrushProperty); } 1933private static Brush GetDefaultSelectionBrush() 1935Brush selectionBrush = new SolidColorBrush(SystemColors.HighlightColor); 1943private static Brush GetDefaultSelectionTextBrush() 1945Brush selectionTextBrush = new SolidColorBrush(SystemColors.HighlightTextColor);
System\Windows\Controls\Primitives\TickBar.cs (4)
96typeof(Brush), 99(Brush)null, 108public Brush Fill 112return (Brush)GetValue(FillProperty);
System\Windows\Controls\SinglePageViewer.cs (2)
212public Brush SelectionBrush 214get { return (Brush)GetValue(SelectionBrushProperty); }
System\Windows\Controls\TextBlock.cs (8)
839public Brush Foreground 841get { return (Brush) GetValue(ForegroundProperty); } 850public static void SetForeground(DependencyObject element, Brush value) 861public static Brush GetForeground(DependencyObject element) 865return (Brush)element.GetValue(ForegroundProperty); 882public Brush Background 884get { return (Brush) GetValue(BackgroundProperty); } 1504Brush background = this.Background;
System\Windows\Controls\ToolBarTray.cs (4)
82(Brush)null, 88public Brush Background 90get { return (Brush)GetValue(BackgroundProperty); } 333Brush background = this.Background;
System\Windows\Documents\AnchoredBlock.cs (2)
167public Brush BorderBrush 169get { return (Brush)GetValue(BorderBrushProperty); }
System\Windows\Documents\Block.cs (3)
193typeof(Brush), 202public Brush BorderBrush 204get { return (Brush)GetValue(BorderBrushProperty); }
System\windows\Documents\CaretElement.cs (5)
130Brush selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty); 240internal void Update(bool visible, Rect caretRectangle, Brush caretBrush, double opacity, bool italic, CaretScrollMethod scrollMethod, double scrollToOriginPosition) 619internal void UpdateCaretBrush(Brush caretBrush) 1266private Brush _caretBrush;
System\Windows\Documents\CompositionAdorner.cs (2)
168Brush selectionBrush = null; 175selectionBrush = (Brush)owner.GetValue(TextBoxBase.SelectionBrushProperty);
System\Windows\Documents\FixedDocument.cs (2)
1100Brush foreground = null; 1101Brush background = null;
System\Windows\Documents\FixedHighlight.cs (6)
41Brush foreground, Brush background) 209internal Brush ForegroundBrush 217internal Brush BackgroundBrush 238private readonly Brush _backgroundBrush; // highlight background brush 239private readonly Brush _foregroundBrush; // highlight foreground brush
System\Windows\Documents\FixedPage.cs (4)
153Brush background = this.Background; 428public Brush Background 430get { return (Brush) GetValue(BackgroundProperty); } 440new FrameworkPropertyMetadata((Brush)Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
System\Windows\Documents\FixedSOMTextRun.cs (2)
382public Brush Foreground 425private Brush _foreground;
System\Windows\Documents\FixedTextContainer.cs (2)
408Brush foregroundBrush, Brush backgroundBrush)
System\Windows\Documents\FlowDocument.cs (7)
288public Brush Foreground 290get { return (Brush) GetValue(ForegroundProperty); } 307public Brush Background 309get { return (Brush) GetValue(BackgroundProperty); } 497typeof(Brush), 506public Brush ColumnRuleBrush 508get { return (Brush)GetValue(ColumnRuleBrushProperty); }
System\Windows\Documents\Glyphs.cs (4)
728typeof(Brush), 731(Brush)null, 740public Brush Fill 744return (Brush)GetValue(FillProperty);
System\Windows\Documents\HighlightVisual.cs (3)
179Brush highlightBrush = null; 185Brush bg = null; 279Brush fg = null;
System\Windows\Documents\ListItem.cs (2)
204public Brush BorderBrush 206get { return (Brush)GetValue(BorderBrushProperty); }
System\windows\Documents\SelectionHighlightInfo.cs (4)
46internal static Brush ForegroundBrush 57internal static Brush BackgroundBrush 68internal static Brush ObjectMaskBrush 87private static readonly Brush _objectMaskBrush;
System\Windows\Documents\TableCell.cs (2)
235public Brush BorderBrush 237get { return (Brush)GetValue(BorderBrushProperty); }
System\Windows\Documents\TableColumn.cs (2)
77public Brush Background 79get { return (Brush) GetValue(BackgroundProperty); }
System\windows\Documents\TextEditorDragDrop.cs (1)
432Brush caretBrush = TextSelection.GetCaretBrush(_textEditor);
System\Windows\Documents\TextElement.cs (10)
696typeof(Brush), 707public Brush Foreground 709get { return (Brush) GetValue(ForegroundProperty); } 718public static void SetForeground(DependencyObject element, Brush value) 729public static Brush GetForeground(DependencyObject element) 733return (Brush)element.GetValue(ForegroundProperty); 742typeof(Brush), 744new FrameworkPropertyMetadata((Brush)null, 750public Brush Background 752get { return (Brush) GetValue(BackgroundProperty); }
System\Windows\Documents\TextSchema.cs (5)
642else if (value1 is Brush) 644return AreBrushesEqual((Brush)value1, (Brush)value2); 915private static bool AreBrushesEqual(Brush brush1, Brush brush2)
System\windows\Documents\TextSelection.cs (4)
1619internal static Brush GetCaretBrush(TextEditor textEditor) 1626Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 2149Brush caretBrush = GetCaretBrush(_textEditor);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
148case 52: t = () => typeof(Brush); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7888Type type = typeof(System.Windows.Media.Brush); 7889DependencyProperty dp = System.Windows.Media.Brush.OpacityProperty; 7891this.GetXamlType(typeof(System.Windows.Media.Brush)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2256typeof(System.Windows.Media.Brush),
System\Windows\Markup\KnownTypes.cs (1)
5606case KnownElements.Brush: t = typeof(System.Windows.Media.Brush); break;
System\Windows\Shapes\Shape.cs (8)
124typeof(Brush), 127(Brush) null, 134public Brush Fill 136get { return (Brush) GetValue(FillProperty); } 147typeof(Brush), 150(Brush) null, 159public Brush Stroke 161get { return (Brush) GetValue(StrokeProperty); }
System\Windows\SystemParameters.cs (2)
5685public static Brush WindowGlassBrush 5963private static Brush _windowGlassBrush;
PresentationFramework.Aero (58)
Microsoft\Windows\Themes\BulletChrome.cs (18)
65public Brush Background 67get { return (Brush) GetValue(BackgroundProperty); } 85public Brush BorderBrush 87get { return (Brush) GetValue(BorderBrushProperty); } 414chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 415chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 445chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 446chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 513chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 514chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 518chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 527chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 628Brush fill = Background; 669Brush innerFill = InnerFill; 775private static Pen GetBorderPen(Brush border) 1784private Brush BackgroundOverlay 2141private Brush GlyphFill 2419public Brush GlyphFill;
Microsoft\Windows\Themes\ButtonChrome.cs (9)
63public Brush Background 65get { return (Brush) GetValue(BackgroundProperty); } 83public Brush BorderBrush 85get { return (Brush) GetValue(BorderBrushProperty); } 493Brush fill = Background; 517Brush leftShadow = LeftDropShadowBrush; 524Brush topShadow = TopDropShadowBrush; 538Brush border = BorderBrush; 764private Brush BackgroundOverlay
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
168Brush sideBrush; 175sideBrush = (Brush)GetCachedFreezable((int)sideType);
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
60public Brush Background 62get { return (Brush) GetValue(BackgroundProperty); } 80public Brush BorderBrush 82get { return (Brush) GetValue(BorderBrushProperty); } 148chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 161chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 334Brush fill = Background; 415private static Pen GetBorderPen(Brush border) 621private Brush BackgroundOverlay
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
37values[0] is not Brush || 48Brush brush = (Brush)values[0];
Microsoft\Windows\Themes\ScrollChrome.cs (7)
479Brush brush = Fill; 512Brush brush = Glyph; 536private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 540Brush glyphShadow = GlyphShadow; 559private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 563Brush glyphShadow = GlyphShadow; 714private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
PresentationFramework.Aero2 (58)
Microsoft\Windows\Themes\BulletChrome.cs (18)
65public Brush Background 67get { return (Brush) GetValue(BackgroundProperty); } 85public Brush BorderBrush 87get { return (Brush) GetValue(BorderBrushProperty); } 414chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 415chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 445chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 446chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 513chrome.GlyphStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 514chrome.GlyphFill.BeginAnimation(Brush.OpacityProperty, da); 518chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 527chrome.HighlightStroke.Brush.BeginAnimation(Brush.OpacityProperty, da); 628Brush fill = Background; 669Brush innerFill = InnerFill; 775private static Pen GetBorderPen(Brush border) 1784private Brush BackgroundOverlay 2141private Brush GlyphFill 2419public Brush GlyphFill;
Microsoft\Windows\Themes\ButtonChrome.cs (9)
63public Brush Background 65get { return (Brush) GetValue(BackgroundProperty); } 83public Brush BorderBrush 85get { return (Brush) GetValue(BorderBrushProperty); } 493Brush fill = Background; 517Brush leftShadow = LeftDropShadowBrush; 524Brush topShadow = TopDropShadowBrush; 538Brush border = BorderBrush; 764private Brush BackgroundOverlay
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
168Brush sideBrush; 175sideBrush = (Brush)GetCachedFreezable((int)sideType);
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
60public Brush Background 62get { return (Brush) GetValue(BackgroundProperty); } 80public Brush BorderBrush 82get { return (Brush) GetValue(BorderBrushProperty); } 148chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 161chrome.BorderOverlayPen.Brush.BeginAnimation(Brush.OpacityProperty, da); 334Brush fill = Background; 415private static Pen GetBorderPen(Brush border) 621private Brush BackgroundOverlay
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
37values[0] is not Brush || 48Brush brush = (Brush)values[0];
Microsoft\Windows\Themes\ScrollChrome.cs (7)
479Brush brush = Fill; 512Brush brush = Glyph; 536private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 540Brush glyphShadow = GlyphShadow; 559private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 563Brush glyphShadow = GlyphShadow; 714private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
PresentationFramework.AeroLite (19)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
119Brush sideBrush; 126sideBrush = (Brush)GetCachedFreezable((int)sideType);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
209Brush brush = Fill; 226Brush brush = Glyph; 243private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 258private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
37values[0] is not Brush || 50Brush brush = (Brush)values[0];
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
PresentationFramework.Classic (41)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (19)
149(Brush) null, 156public Brush Background 158get { return (Brush) GetValue(BackgroundProperty); } 507private static Brush _classicBorderBrush; 510public static Brush ClassicBorderBrush 536typeof(Brush), 545public Brush BorderBrush 547get { return (Brush) GetValue(BorderBrushProperty); } 752Brush borderBrush = BorderBrush; 831Brush background = Background; 921private static bool IsSimpleBorderBrush(Brush borderBrush) 929private void DrawBorder(Brush borderBrush, Thickness borderThickness, DrawingContext dc, ref Rect bounds) 983private void DrawBorderPair(Brush highlight, Brush shadow, Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1025Brush dark = DarkBrush, lightLight = LightLightBrush; 1345private Brush LightBrush 1354private Brush LightLightBrush 1363private Brush DarkBrush 1372private Brush DarkDarkBrush
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (9)
34DependencyProperty.Register("ControlBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender)); 36private Brush EnsureControlBrush() 43return (Brush)GetValue(ControlBrushProperty); 54Brush background = EnsureControlBrush(); 55Brush light = SystemColors.ControlLightBrush; 56Brush dark = SystemColors.ControlDarkBrush; 61Brush darkDarkRight = null; 79Brush darkDarkBottom = null; 189Brush sortArrowColor =
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
37values[0] is not Brush || 50Brush brush = (Brush)values[0];
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
PresentationFramework.Luna (43)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
213public Brush Fill 215get { return (Brush) GetValue(FillProperty); } 232public Brush BorderBrush 234get { return (Brush) GetValue(BorderBrushProperty); } 421Brush brush = Background; 442Brush brush = TopShade; 639Brush brush = BorderBrush; 1425private Brush Background
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
260Brush sideBrush;
Microsoft\Windows\Themes\ScrollChrome.cs (10)
319Brush brush = Fill; 353Brush brush = Glyph; 378private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 382Brush glyphShadow = GlyphShadow; 400private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 404Brush glyphShadow = GlyphShadow; 566private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph) 1273private Brush Fill 1613private Brush Glyph 1837private Brush GlyphShadow
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
52public Brush Background 54get { return (Brush) GetValue(BackgroundProperty); } 72public Brush BorderBrush 74get { return (Brush) GetValue(BorderBrushProperty); } 236Brush fill = BackgroundBrush; 280Brush glyphFill = GlyphFill; 351Brush borderBrush = Border; 374private static Pen GetBorderPen(Brush border) 655private Brush Border 754private Brush BackgroundBrush 878private Brush GlyphFill
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
37values[0] is not Brush || 50Brush brush = (Brush)values[0];
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
PresentationFramework.Royale (43)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
171public Brush Fill 173get { return (Brush) GetValue(FillProperty); } 190public Brush BorderBrush 192get { return (Brush) GetValue(BorderBrushProperty); } 342Brush brush = Background; 363Brush brush = TopShade; 498Brush brush = BorderBrush; 929private Brush Background
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
182Brush sideBrush;
Microsoft\Windows\Themes\ScrollChrome.cs (10)
279Brush brush = Fill; 313Brush brush = Glyph; 338private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 342Brush glyphShadow = GlyphShadow; 360private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 364Brush glyphShadow = GlyphShadow; 526private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph) 792private Brush Fill 908private Brush Glyph 976private Brush GlyphShadow
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
52public Brush Background 54get { return (Brush) GetValue(BackgroundProperty); } 72public Brush BorderBrush 74get { return (Brush) GetValue(BorderBrushProperty); } 236Brush fill = BackgroundBrush; 280Brush glyphFill = GlyphFill; 351Brush borderBrush = Border; 374private static Pen GetBorderPen(Brush border) 655private Brush Border 754private Brush BackgroundBrush 878private Brush GlyphFill
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
135public Brush SeparatorBrush 137get { return (Brush)GetValue(SeparatorBrushProperty); } 145DependencyProperty.Register("SeparatorBrush", typeof(Brush), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(null));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
37values[0] is not Brush || 50Brush brush = (Brush)values[0];
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (7)
123Brush[] brushes = GetBrushes(color, cornerRadius); 326private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 328Brush[] brushes = new Brush[9]; 431private Brush[] GetBrushes(Color c, CornerRadius cornerRadius) 477private static Brush[] _commonBrushes; 482private Brush[] _brushes;
ReachFramework (70)
AlphaFlattener\BrushProxy.cs (23)
368private BrushProxy(Brush brush) 992public Brush GetRealBrush() 1314private Brush BuildBrush() 1316Brush brush; 1441private Brush BuildOpacityBrush() 1496private Brush BuildRegularBrush() 1559Brush childBrush = child.GetRealBrush(); 2201private static bool Supercede(Brush brushA, Brush brushB) 2607static public bool IsOpaqueWhite(Brush brush) 2624static public bool IsOpaqueBlack(Brush brush) 2651private static BrushProxy CreateBrushCore(Brush brush, Rect bounds) 2735public static BrushProxy CreateBrush(Brush brush, Rect bounds) 2753public static BrushProxy CreateOpacityMaskBrush(Brush brush, Rect bounds) 2783public static BrushProxy CreateUserBrush(Brush brush, Rect bounds, Matrix brushToWorldTransformHint, TreeWalkProgress treeWalkProgress) 2812public static bool IsEmpty(Brush brush) 2933public static Brush ReduceBrush(Brush brush, Rect bounds, Matrix brushToWorldTransformHint, Size pageSize, TreeWalkProgress treeWalkProgress) 2976Brush b = new SolidColorBrush(c); 3357public Brush Brush 3526private Brush _brush; 3574Brush b = brush.Brush.CloneCurrentValue(); 3590Brush mb = mask.GetRealBrush().CloneCurrentValue();
AlphaFlattener\DrawingContext.cs (3)
632private static double DrawGeometryCost(Brush b, Pen p, Geometry g) 773Brush b = null; 936Brush b = bp.Brush;
AlphaFlattener\Flattener.cs (3)
1381void ILegacyDevice.DrawGeometry(Brush brush, Pen pen, Brush strokeBrush, Geometry geometry) 1410void ILegacyDevice.DrawGlyphRun(Brush foreground, GlyphRun glyphRun)
AlphaFlattener\Interfaces.cs (3)
23void DrawGeometry(Brush brush, Pen pen, Geometry geometry); 37void DrawGlyphRun(Brush foreground, GlyphRun glyphRun); 56Brush opacityMask,
AlphaFlattener\MetroDevice.cs (6)
149public void DrawGeometry(Brush brush, Pen pen, Geometry geometry) 269public void DrawGlyphRun(Brush foreground, GlyphRun glyphRun) 300public void Push(Matrix transform, Geometry clip, double opacity, Brush opacityMask, Rect maskBounds, bool onePrimitive) 693void IMetroDrawingContext.DrawGeometry(Brush brush, Pen pen, Geometry geometry) 703void IMetroDrawingContext.DrawGlyphRun(Brush foreground, GlyphRun glyphRun) 712Brush opacityMask,
AlphaFlattener\Optimizer.cs (1)
361Brush b = bp.Brush;
AlphaFlattener\Primitive.cs (2)
1511Brush realBrush = Brush.GetRealBrush(); 1530Brush realBrush = Pen.StrokeBrush.GetRealBrush();
AlphaFlattener\PrimitiveList.cs (1)
195Brush b = gp.Brush.Brush;
AlphaFlattener\Utility.cs (3)
1062public static double GetOpacity(Brush brush) 1108public static bool IsBrushOpaque(Brush brush) 1479public static bool ExtractOpacityMaskOpacity(Brush brush, out double opacity, Rect maskBounds)
Serialization\DrawingContextFlattener.cs (9)
83Brush opacityMask, 220private Brush ReduceBrush(Brush brush, Rect bounds) 232Brush b = ReduceBrush(pen.Brush, bounds); 252public void DrawGeometry(Brush brush, Pen pen, Geometry geometry) 455public void DrawGlyphRun(Brush foreground, GlyphRun glyphRun) 905public void DrawGeometry(Brush brush, Pen pen, Geometry geometry) 915public void DrawGlyphRun(Brush foreground, GlyphRun glyphRun) 924Brush opacityMask,
Serialization\VisualSerializer.cs (15)
263protected string FindBrush(Brush brush, Rect bounds) 342protected string SimpleBrushToString(Brush brush) 416private void WriteBrushHeader(string element, Brush brush) 591_opacityMask = _tcoStack.Pop() as Brush; 681protected StringBuilder BrushToString(Brush brush, Rect bounds) 866protected Brush _opacityMask; // = null; 891protected void WriteBrush(string attribute, Brush brush, Rect bounds) 1153static private bool Visible(Brush brush, Pen pen) 1725static public bool NeedBounds(Brush b) 1852void IMetroDrawingContext.DrawGeometry(Brush brush, Pen pen, Geometry geometry) 1946Brush brush = new ImageBrush((BitmapSource)image); 1991DrawGlyphRunAsImage(Brush foreground, GlyphRun glyphRun) 2034void IMetroDrawingContext.DrawGlyphRun(Brush foreground, GlyphRun glyphRun) 2250bool WriteTCO(string element, Transform transform, Geometry clip, Matrix clipMat, double opacity, Brush opacityMask, Rect bounds) 2343Brush opacityMask,
Serialization\VisualTreeFlattener.cs (1)
452Brush mask = VisualTreeHelper.GetOpacityMask(visual);
System.Windows.Controls.Ribbon (126)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
250Brush b = ribbon.BorderBrush.Clone();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
342Brush b = ribbon.BorderBrush.Clone();
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (24)
464public Brush MouseOverBorderBrush 466get { return (Brush)GetValue(MouseOverBorderBrushProperty); } 476typeof(Brush), 483public Brush MouseOverBackground 485get { return (Brush)GetValue(MouseOverBackgroundProperty); } 495typeof(Brush), 502public Brush PressedBorderBrush 504get { return (Brush)GetValue(PressedBorderBrushProperty); } 514typeof(Brush), 521public Brush PressedBackground 523get { return (Brush)GetValue(PressedBackgroundProperty); } 533typeof(Brush), 540public Brush CheckedBorderBrush 542get { return (Brush)GetValue(CheckedBorderBrushProperty); } 552typeof(Brush), 559public Brush CheckedBackground 561get { return (Brush)GetValue(CheckedBackgroundProperty); } 571typeof(Brush), 579public Brush FocusedBorderBrush 581get { return (Brush)GetValue(FocusedBorderBrushProperty); } 591typeof(Brush), 598public Brush FocusedBackground 600get { return (Brush)GetValue(FocusedBackgroundProperty); } 610typeof(Brush),
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (6)
328public Brush MouseOverBorderBrush 343public Brush MouseOverBackground 358public Brush PressedBorderBrush 373public Brush PressedBackground 388public Brush FocusedBackground 403public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (8)
314public Brush MouseOverBorderBrush 329public Brush MouseOverBackground 344public Brush PressedBorderBrush 359public Brush PressedBackground 374public Brush CheckedBackground 389public Brush CheckedBorderBrush 404public Brush FocusedBackground 419public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (32)
336typeof(Brush), 343public static Brush GetMouseOverBorderBrush(DependencyObject element) 346return (Brush)element.GetValue(MouseOverBorderBrushProperty); 352public static void SetMouseOverBorderBrush(DependencyObject element, Brush value) 364typeof(Brush), 371public static Brush GetMouseOverBackground(DependencyObject element) 374return (Brush)element.GetValue(MouseOverBackgroundProperty); 380public static void SetMouseOverBackground(DependencyObject element, Brush value) 392typeof(Brush), 399public static Brush GetPressedBorderBrush(DependencyObject element) 402return (Brush)element.GetValue(PressedBorderBrushProperty); 408public static void SetPressedBorderBrush(DependencyObject element, Brush value) 420typeof(Brush), 427public static Brush GetPressedBackground(DependencyObject element) 430return (Brush)element.GetValue(PressedBackgroundProperty); 436public static void SetPressedBackground(DependencyObject element, Brush value) 448typeof(Brush), 455public static Brush GetCheckedBackground(DependencyObject element) 458return (Brush)element.GetValue(CheckedBackgroundProperty); 464public static void SetCheckedBackground(DependencyObject element, Brush value) 476typeof(Brush), 483public static Brush GetCheckedBorderBrush(DependencyObject element) 486return (Brush)element.GetValue(CheckedBorderBrushProperty); 492public static void SetCheckedBorderBrush(DependencyObject element, Brush value) 504typeof(Brush), 511public static Brush GetFocusedBackground(DependencyObject element) 514return (Brush)element.GetValue(FocusedBackgroundProperty); 520public static void SetFocusedBackground(DependencyObject element, Brush value) 532typeof(Brush), 539public static Brush GetFocusedBorderBrush(DependencyObject element) 542return (Brush)element.GetValue(FocusedBorderBrushProperty); 548public static void SetFocusedBorderBrush(DependencyObject element, Brush value)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (6)
532public Brush MouseOverBorderBrush 547public Brush MouseOverBackground 562public Brush PressedBorderBrush 577public Brush PressedBackground 592public Brush CheckedBackground 607public Brush CheckedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
437public Brush MouseOverBorderBrush 452public Brush MouseOverBackground
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (6)
334public Brush MouseOverBorderBrush 349public Brush MouseOverBackground 364public Brush PressedBorderBrush 379public Brush PressedBackground 394public Brush FocusedBackground 409public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (6)
408public Brush MouseOverBorderBrush 423public Brush MouseOverBackground 438public Brush PressedBorderBrush 453public Brush PressedBackground 468public Brush CheckedBackground 483public Brush CheckedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (8)
329public Brush MouseOverBorderBrush 344public Brush MouseOverBackground 359public Brush PressedBorderBrush 374public Brush PressedBackground 389public Brush CheckedBackground 404public Brush CheckedBorderBrush 420public Brush FocusedBackground 435public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
96public Brush CheckedBackground 111public Brush CheckedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (6)
182public Brush MouseOverBorderBrush 197public Brush MouseOverBackground 212public Brush FocusedBackground 227public Brush FocusedBorderBrush 242public Brush CheckedBackground 257public Brush CheckedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (4)
511public Brush MouseOverBorderBrush 526public Brush MouseOverBackground 541public Brush FocusedBackground 556public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (8)
336public Brush MouseOverBorderBrush 351public Brush MouseOverBackground 366public Brush PressedBorderBrush 381public Brush PressedBackground 396public Brush CheckedBackground 411public Brush CheckedBorderBrush 427public Brush FocusedBackground 442public Brush FocusedBorderBrush
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (6)
158public Brush PathFill 160get { return (Brush)GetValue(PathFillProperty); } 170typeof(Brush), 177public Brush PathStroke 179get { return (Brush)GetValue(PathStrokeProperty); } 189typeof(Brush),
WindowsFormsIntegration (19)
System\Windows\Integration\HostUtils.cs (3)
142internal static bool BrushIsSolidOpaque(SWM.Brush c) 161internal static SD.Bitmap GetBitmapForWindowsFormsHost(WindowsFormsHost host, Brush brush) 330internal static SD.Bitmap GetBitmapForOpaqueWindowsFormsHost(WindowsFormsHost host, Brush brush)
System\Windows\Integration\WindowsFormsHost.cs (10)
39private SWM.Brush _cachedBackbrush; 381static Brush defaultBrush = SystemColors.WindowBrush; 389private static SWM.Brush FindBackgroundParent(SW.DependencyObject dependencyObject) 396Brush backgroundBrush = null; 397backgroundBrush = (Brush)dependencyObject.GetValue(SWC.Control.BackgroundProperty); 418SWM.Brush parentBrush = FindBackgroundParent(this); 684public Brush Foreground 686get { return (Brush)GetValue(ForegroundProperty); } 699public Brush Background 701get { return (Brush)GetValue(BackgroundProperty); }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (6)
59SWM.Brush brush = value as SWM.Brush; 68brush = (Brush)parent.GetValue(SWC.Control.BackgroundProperty); 219SWM.Brush brush = value as SWM.Brush; 375private static SD.Color TranslateSolidOrGradientBrush(SWM.Brush brush, out bool defined)