2 writes to _brushCache
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
420decorator._brushCache = new CustomBrushCache(); 448decorator._brushCache = null;
15 references to _brushCache
PresentationFramework.Classic (15)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (15)
416if (decorator._brushCache == null || controlColor != decorator._brushCache.LightBrush.Color) 418if (decorator._brushCache == null) 428decorator._brushCache.LightBrush = controlBrush; 429decorator._brushCache.LightLightBrush = new SolidColorBrush(GetControlLightLightColor(controlColor)); 432decorator._brushCache.DarkBrush = new SolidColorBrush(darkColor); 443decorator._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;