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