3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
416
decorator.
_tabCache
= null;
1137
_tabCache
= new TabGeometryCache();
1195
_tabCache
= new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1136
if (
_tabCache
== null)
1139
if (
_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;
1149
return
_tabCache
.Highlight1;
1155
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1");
1157
if (
_tabCache
.Shadow1 == null)
1159
_tabCache
.Shadow1 = GenerateTabTopShadowGeometry(bounds, true);
1162
return
_tabCache
.Shadow1;
1168
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1");
1170
if (
_tabCache
.Highlight2 == null)
1172
_tabCache
.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false);
1175
return
_tabCache
.Highlight2;
1181
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1");
1183
if (
_tabCache
.Shadow2 == null)
1185
_tabCache
.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false);
1188
return
_tabCache
.Shadow2;
1194
if (
_tabCache
== null)
1197
if (
_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;
1214
return
_tabCache
.Transform;