2 writes to _brushCache
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
428decorator._brushCache = new CustomBrushCache(); 454decorator._brushCache = null;
15 references to _brushCache
PresentationFramework.Classic (15)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (15)
424if (decorator._brushCache == null || controlColor != decorator._brushCache.LightBrush.Color) 426if (decorator._brushCache == null) 436decorator._brushCache.LightBrush = controlBrush; 437decorator._brushCache.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor)); 440decorator._brushCache.DarkBrush = new SolidColorBrush(darkColor); 449decorator._brushCache.DarkDarkBrush = new SolidColorBrush(darkDarkColor); 1354return _brushCache != null ? _brushCache.LightBrush : SystemColors.ControlLightBrush; 1363return _brushCache != null ? _brushCache.LightLightBrush : SystemColors.ControlLightLightBrush; 1372return _brushCache != null ? _brushCache.DarkBrush : SystemColors.ControlDarkBrush; 1381return _brushCache != null ? _brushCache.DarkDarkBrush : SystemColors.ControlDarkDarkBrush;