3 writes to _tabCache
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
411
decorator.
_tabCache
= null;
1132
_tabCache
= new TabGeometryCache();
1190
_tabCache
= new TabGeometryCache();
31 references to _tabCache
PresentationFramework.Classic (31)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (31)
1131
if (
_tabCache
== null)
1134
if (
_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;
1144
return
_tabCache
.Highlight1;
1150
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetShadow1 should only be called after GetHighlight1");
1152
if (
_tabCache
.Shadow1 == null)
1154
_tabCache
.Shadow1 = GenerateTabTopShadowGeometry(bounds, true);
1157
return
_tabCache
.Shadow1;
1163
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1");
1165
if (
_tabCache
.Highlight2 == null)
1167
_tabCache
.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false);
1170
return
_tabCache
.Highlight2;
1176
Debug.Assert(
_tabCache
!= null, "_tabCache is null. GetHighlight2 should only be called after GetHighlight1");
1178
if (
_tabCache
.Shadow2 == null)
1180
_tabCache
.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false);
1183
return
_tabCache
.Shadow2;
1189
if (
_tabCache
== null)
1192
if (
_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;
1209
return
_tabCache
.Transform;