3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
416decorator._tabCache = null; 1137_tabCache = new TabGeometryCache(); 1195_tabCache = new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1136if (_tabCache == null) 1139if (_tabCache.Bounds != bounds || _tabCache.Highlight1 == null) 1142_tabCache.Highlight1 = GenerateTabTopHighlightGeometry(bounds, true); 1143_tabCache.Bounds = bounds; 1144_tabCache.Shadow1 = null; //bounds changed, these are invalid 1145_tabCache.Highlight2 = null; 1146_tabCache.Shadow2 = null; 1149return _tabCache.Highlight1; 1155Debug.Assert(_tabCache != null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1"); 1157if (_tabCache.Shadow1 == null) 1159_tabCache.Shadow1 = GenerateTabTopShadowGeometry(bounds, true); 1162return _tabCache.Shadow1; 1168Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1170if (_tabCache.Highlight2 == null) 1172_tabCache.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1175return _tabCache.Highlight2; 1181Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1183if (_tabCache.Shadow2 == null) 1185_tabCache.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1188return _tabCache.Shadow2; 1194if (_tabCache == null) 1197if (_tabCache.Transform == null || xOffset != _tabCache.xOffset || yOffset != _tabCache.yOffset) 1202_tabCache.Transform = new MatrixTransform(new Matrix(0.0, 1.0, 1.0, 0.0, xOffset, yOffset)); 1205_tabCache.Transform = new MatrixTransform(new Matrix(0.0, -1.0, -1.0, 0.0, xOffset, yOffset)); 1208_tabCache.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, -1.0, xOffset, yOffset)); 1211_tabCache.xOffset = xOffset; 1212_tabCache.yOffset = yOffset; 1214return _tabCache.Transform;