2 writes to _brushCache
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
423
decorator.
_brushCache
= new CustomBrushCache();
449
decorator.
_brushCache
= null;
15 references to _brushCache
PresentationFramework.Classic (15)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (15)
419
if (decorator.
_brushCache
== null || controlColor != decorator.
_brushCache
.LightBrush.Color)
421
if (decorator.
_brushCache
== null)
431
decorator.
_brushCache
.LightBrush = controlBrush;
432
decorator.
_brushCache
.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor));
435
decorator.
_brushCache
.DarkBrush = new SolidColorBrush(darkColor);
444
decorator.
_brushCache
.DarkDarkBrush = new SolidColorBrush(darkDarkColor);
1349
return
_brushCache
!= null ?
_brushCache
.LightBrush : SystemColors.ControlLightBrush;
1358
return
_brushCache
!= null ?
_brushCache
.LightLightBrush : SystemColors.ControlLightLightBrush;
1367
return
_brushCache
!= null ?
_brushCache
.DarkBrush : SystemColors.ControlDarkBrush;
1376
return
_brushCache
!= null ?
_brushCache
.DarkDarkBrush : SystemColors.ControlDarkDarkBrush;