2 writes to _brushCache
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
419
decorator.
_brushCache
= new CustomBrushCache();
447
decorator.
_brushCache
= null;
15 references to _brushCache
PresentationFramework.Classic (15)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (15)
415
if (decorator.
_brushCache
== null || controlColor != decorator.
_brushCache
.LightBrush.Color)
417
if (decorator.
_brushCache
== null)
427
decorator.
_brushCache
.LightBrush = controlBrush;
428
decorator.
_brushCache
.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor));
431
decorator.
_brushCache
.DarkBrush = new SolidColorBrush(darkColor);
442
decorator.
_brushCache
.DarkDarkBrush = new SolidColorBrush(darkDarkColor);
1353
return
_brushCache
!= null ?
_brushCache
.LightBrush : SystemColors.ControlLightBrush;
1362
return
_brushCache
!= null ?
_brushCache
.LightLightBrush : SystemColors.ControlLightLightBrush;
1371
return
_brushCache
!= null ?
_brushCache
.DarkBrush : SystemColors.ControlDarkBrush;
1380
return
_brushCache
!= null ?
_brushCache
.DarkDarkBrush : SystemColors.ControlDarkDarkBrush;