3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
407decorator._tabCache = null; 1136_tabCache = new TabGeometryCache(); 1194_tabCache = new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1135if (_tabCache == null) 1138if (_tabCache.Bounds != bounds || _tabCache.Highlight1 == null) 1141_tabCache.Highlight1 = GenerateTabTopHighlightGeometry(bounds, true); 1142_tabCache.Bounds = bounds; 1143_tabCache.Shadow1 = null; //bounds changed, these are invalid 1144_tabCache.Highlight2 = null; 1145_tabCache.Shadow2 = null; 1148return _tabCache.Highlight1; 1154Debug.Assert(_tabCache != null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1"); 1156if (_tabCache.Shadow1 == null) 1158_tabCache.Shadow1 = GenerateTabTopShadowGeometry(bounds, true); 1161return _tabCache.Shadow1; 1167Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1169if (_tabCache.Highlight2 == null) 1171_tabCache.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1174return _tabCache.Highlight2; 1180Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1182if (_tabCache.Shadow2 == null) 1184_tabCache.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1187return _tabCache.Shadow2; 1193if (_tabCache == null) 1196if (_tabCache.Transform == null || xOffset != _tabCache.xOffset || yOffset != _tabCache.yOffset) 1201_tabCache.Transform = new MatrixTransform(new Matrix(0.0, 1.0, 1.0, 0.0, xOffset, yOffset)); 1204_tabCache.Transform = new MatrixTransform(new Matrix(0.0, -1.0, -1.0, 0.0, xOffset, yOffset)); 1207_tabCache.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, -1.0, xOffset, yOffset)); 1210_tabCache.xOffset = xOffset; 1211_tabCache.yOffset = yOffset; 1213return _tabCache.Transform;