25 writes to SizeCache
PresentationFramework (25)
System\Windows\Controls\Grid.cs (25)
1464
definitions[i].
SizeCache
= maxSize;
1656
definitions[i].
SizeCache
= 0;
1668
definitions[i].
SizeCache
= maxSize / starValue;
1690
tempDefinitions[i].
SizeCache
= allStarWeights;
1824
def.
SizeCache
= starWeight / effectiveMaxSize;
2002
def.
SizeCache
= totalStarWeight;
2096
definitions[i].
SizeCache
= 0;
2108
definitions[i].
SizeCache
= maxSize / starValue;
2112
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2147
definitions[i].
SizeCache
= Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize));
2151
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2177
definitions[definitionIndices[i]].
SizeCache
= allStarWeights;
2197
definitions[definitionIndices[i]].
SizeCache
= resolvedSize;
2201
definitions[definitionIndices[i]].
SizeCache
= UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi);
2231
definitions[definitionIndex].
SizeCache
= final;
2265
definition.
SizeCache
= final;
2281
definition.
SizeCache
= final;
2399
def.
SizeCache
= starWeight / effectiveMaxSize;
2433
def.
SizeCache
= Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize));
2605
def.
SizeCache
= -def.MeasureSize;
2627
def.
SizeCache
= totalStarWeight;
2644
def.
SizeCache
= resolvedSize;
2663
def.
SizeCache
= roundedSize;
2734
definition.
SizeCache
= final;
2750
definition.
SizeCache
= final;
52 references to SizeCache
PresentationFramework (52)
System\Windows\Controls\DefinitionBase.cs (1)
933
else if (!DoubleUtil.AreClose(sharedMinSize, definitionBase.
SizeCache
))
System\Windows\Controls\Grid.cs (51)
1540
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1551
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1586
double deltaSize = (maxMaxSize - tempDefinitions[i].
SizeCache
) * sizeToDistribute / totalRemainingSize;
1587
tempDefinitions[i].UpdateMinSize(tempDefinitions[i].
SizeCache
+ deltaSize);
1705
double userSize = Math.Max(availableSize - takenSize, 0.0) * (starValue / tempDefinitions[i].
SizeCache
);
1866
double maxRatio = (maxCount > 0) ? tempDefinitions[defCount + maxCount - 1].
SizeCache
: -1.0;
2009
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2111
roundingErrors[i] = definitions[i].
SizeCache
;
2112
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2150
roundingErrors[i] = definitions[i].
SizeCache
;
2151
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2154
allPreferredArrangeSize += definitions[i].
SizeCache
;
2192
double userSize = Math.Max(finalSize - allPreferredArrangeSize, 0.0) * (starValue / definitions[definitionIndices[i]].
SizeCache
);
2200
roundingErrors[definitionIndices[i]] = definitions[definitionIndices[i]].
SizeCache
;
2201
definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].
SizeCache
, dpi);
2204
allPreferredArrangeSize += definitions[definitionIndices[i]].
SizeCache
;
2217
double final = definitions[definitionIndex].
SizeCache
+ (sizeToDistribute / (definitions.Length - i));
2220
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2227
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2230
sizeToDistribute -= (final - definitions[definitionIndex].
SizeCache
);
2244
roundingErrors[i] = roundingErrors[i] - definitions[i].
SizeCache
;
2259
double final = definition.
SizeCache
- dpiIncrement;
2261
if (final < definition.
SizeCache
)
2275
double final = definition.
SizeCache
+ dpiIncrement;
2277
if (final > definition.
SizeCache
)
2291
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2434
takenSize += def.
SizeCache
;
2474
double maxRatio = (maxCount > 0) ? definitions[definitionIndices[defCount + maxCount - 1]].
SizeCache
: -1.0;
2634
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2661
double roundedSize = UIElement.RoundLayoutValue(def.
SizeCache
, dpi);
2662
roundingErrors[i] = (roundedSize - def.
SizeCache
);
2728
double final = definition.
SizeCache
- dpiIncrement;
2730
if (final < definition.
SizeCache
)
2744
double final = definition.
SizeCache
+ dpiIncrement;
2746
if (final > definition.
SizeCache
)
2761
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2848
size += definitions[i].
SizeCache
;
3641
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3656
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3670
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3695
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3721
double xprime = definitionX.
SizeCache
- definitionX.MinSizeForArrange;
3722
double yprime = definitionY.
SizeCache
- definitionY.MinSizeForArrange;
3769
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3835
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);