3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
411decorator._tabCache = null; 1132_tabCache = new TabGeometryCache(); 1190_tabCache = new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1131if (_tabCache == null) 1134if (_tabCache.Bounds != bounds || _tabCache.Highlight1 == null) 1137_tabCache.Highlight1 = GenerateTabTopHighlightGeometry(bounds, true); 1138_tabCache.Bounds = bounds; 1139_tabCache.Shadow1 = null; //bounds changed, these are invalid 1140_tabCache.Highlight2 = null; 1141_tabCache.Shadow2 = null; 1144return _tabCache.Highlight1; 1150Debug.Assert(_tabCache != null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1"); 1152if (_tabCache.Shadow1 == null) 1154_tabCache.Shadow1 = GenerateTabTopShadowGeometry(bounds, true); 1157return _tabCache.Shadow1; 1163Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1165if (_tabCache.Highlight2 == null) 1167_tabCache.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1170return _tabCache.Highlight2; 1176Debug.Assert(_tabCache != null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1"); 1178if (_tabCache.Shadow2 == null) 1180_tabCache.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1183return _tabCache.Shadow2; 1189if (_tabCache == null) 1192if (_tabCache.Transform == null || xOffset != _tabCache.xOffset || yOffset != _tabCache.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(0.0, -1.0, -1.0, 0.0, xOffset, yOffset)); 1203_tabCache.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, -1.0, xOffset, yOffset)); 1206_tabCache.xOffset = xOffset; 1207_tabCache.yOffset = yOffset; 1209return _tabCache.Transform;