25 writes to SizeCache
PresentationFramework (25)
System\Windows\Controls\Grid.cs (25)
1474
definitions[i].
SizeCache
= maxSize;
1666
definitions[i].
SizeCache
= 0;
1678
definitions[i].
SizeCache
= maxSize / starValue;
1700
tempDefinitions[i].
SizeCache
= allStarWeights;
1834
def.
SizeCache
= starWeight / effectiveMaxSize;
2012
def.
SizeCache
= totalStarWeight;
2106
definitions[i].
SizeCache
= 0;
2118
definitions[i].
SizeCache
= maxSize / starValue;
2122
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2157
definitions[i].
SizeCache
= Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize));
2161
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2187
definitions[definitionIndices[i]].
SizeCache
= allStarWeights;
2207
definitions[definitionIndices[i]].
SizeCache
= resolvedSize;
2211
definitions[definitionIndices[i]].
SizeCache
= UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi);
2241
definitions[definitionIndex].
SizeCache
= final;
2275
definition.
SizeCache
= final;
2291
definition.
SizeCache
= final;
2409
def.
SizeCache
= starWeight / effectiveMaxSize;
2443
def.
SizeCache
= Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize));
2615
def.
SizeCache
= -def.MeasureSize;
2637
def.
SizeCache
= totalStarWeight;
2654
def.
SizeCache
= resolvedSize;
2673
def.
SizeCache
= roundedSize;
2744
definition.
SizeCache
= final;
2760
definition.
SizeCache
= final;
52 references to SizeCache
PresentationFramework (52)
System\Windows\Controls\DefinitionBase.cs (1)
940
else if (!DoubleUtil.AreClose(sharedMinSize, definitionBase.
SizeCache
))
System\Windows\Controls\Grid.cs (51)
1550
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1561
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1596
double deltaSize = (maxMaxSize - tempDefinitions[i].
SizeCache
) * sizeToDistribute / totalRemainingSize;
1597
tempDefinitions[i].UpdateMinSize(tempDefinitions[i].
SizeCache
+ deltaSize);
1715
double userSize = Math.Max(availableSize - takenSize, 0.0) * (starValue / tempDefinitions[i].
SizeCache
);
1876
double maxRatio = (maxCount > 0) ? tempDefinitions[defCount + maxCount - 1].
SizeCache
: -1.0;
2019
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2121
roundingErrors[i] = definitions[i].
SizeCache
;
2122
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2160
roundingErrors[i] = definitions[i].
SizeCache
;
2161
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2164
allPreferredArrangeSize += definitions[i].
SizeCache
;
2202
double userSize = Math.Max(finalSize - allPreferredArrangeSize, 0.0) * (starValue / definitions[definitionIndices[i]].
SizeCache
);
2210
roundingErrors[definitionIndices[i]] = definitions[definitionIndices[i]].
SizeCache
;
2211
definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].
SizeCache
, dpi);
2214
allPreferredArrangeSize += definitions[definitionIndices[i]].
SizeCache
;
2227
double final = definitions[definitionIndex].
SizeCache
+ (sizeToDistribute / (definitions.Length - i));
2230
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2237
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2240
sizeToDistribute -= (final - definitions[definitionIndex].
SizeCache
);
2254
roundingErrors[i] = roundingErrors[i] - definitions[i].
SizeCache
;
2269
double final = definition.
SizeCache
- dpiIncrement;
2271
if (final < definition.
SizeCache
)
2285
double final = definition.
SizeCache
+ dpiIncrement;
2287
if (final > definition.
SizeCache
)
2301
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2444
takenSize += def.
SizeCache
;
2484
double maxRatio = (maxCount > 0) ? definitions[definitionIndices[defCount + maxCount - 1]].
SizeCache
: -1.0;
2644
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2671
double roundedSize = UIElement.RoundLayoutValue(def.
SizeCache
, dpi);
2672
roundingErrors[i] = (roundedSize - def.
SizeCache
);
2738
double final = definition.
SizeCache
- dpiIncrement;
2740
if (final < definition.
SizeCache
)
2754
double final = definition.
SizeCache
+ dpiIncrement;
2756
if (final > definition.
SizeCache
)
2771
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2858
size += definitions[i].
SizeCache
;
3651
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3666
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3680
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3705
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3731
double xprime = definitionX.
SizeCache
- definitionX.MinSizeForArrange;
3732
double yprime = definitionY.
SizeCache
- definitionY.MinSizeForArrange;
3779
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3845
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);