3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
408decorator._tabCache = null; 1129_tabCache = new TabGeometryCache(); 1187_tabCache = new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1128if (_tabCache == null) 1131if (_tabCache.Bounds != bounds || _tabCache.Highlight1 == null) 1134_tabCache.Highlight1 = GenerateTabTopHighlightGeometry(bounds, true); 1135_tabCache.Bounds = bounds; 1136_tabCache.Shadow1 = null; //bounds changed, these are invalid 1137_tabCache.Highlight2 = null; 1138_tabCache.Shadow2 = null; 1141return _tabCache.Highlight1; 1147Debug.Assert(_tabCache != null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1"); 1149if (_tabCache.Shadow1 == null) 1151_tabCache.Shadow1 = GenerateTabTopShadowGeometry(bounds, true); 1154return _tabCache.Shadow1; 1160Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1162if (_tabCache.Highlight2 == null) 1164_tabCache.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1167return _tabCache.Highlight2; 1173Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1175if (_tabCache.Shadow2 == null) 1177_tabCache.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1180return _tabCache.Shadow2; 1186if (_tabCache == null) 1189if (_tabCache.Transform == null || xOffset != _tabCache.xOffset || yOffset != _tabCache.yOffset) 1194_tabCache.Transform = new MatrixTransform(new Matrix(0.0, 1.0, 1.0, 0.0, xOffset, yOffset)); 1197_tabCache.Transform = new MatrixTransform(new Matrix(0.0, -1.0, -1.0, 0.0, xOffset, yOffset)); 1200_tabCache.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, -1.0, xOffset, yOffset)); 1203_tabCache.xOffset = xOffset; 1204_tabCache.yOffset = yOffset; 1206return _tabCache.Transform;