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