25 writes to SizeCache
PresentationFramework (25)
System\Windows\Controls\Grid.cs (25)
1465
definitions[i].
SizeCache
= maxSize;
1657
definitions[i].
SizeCache
= 0;
1669
definitions[i].
SizeCache
= maxSize / starValue;
1691
tempDefinitions[i].
SizeCache
= allStarWeights;
1825
def.
SizeCache
= starWeight / effectiveMaxSize;
2003
def.
SizeCache
= totalStarWeight;
2097
definitions[i].
SizeCache
= 0;
2109
definitions[i].
SizeCache
= maxSize / starValue;
2113
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2148
definitions[i].
SizeCache
= Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize));
2152
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2178
definitions[definitionIndices[i]].
SizeCache
= allStarWeights;
2198
definitions[definitionIndices[i]].
SizeCache
= resolvedSize;
2202
definitions[definitionIndices[i]].
SizeCache
= UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi);
2232
definitions[definitionIndex].
SizeCache
= final;
2266
definition.
SizeCache
= final;
2282
definition.
SizeCache
= final;
2400
def.
SizeCache
= starWeight / effectiveMaxSize;
2434
def.
SizeCache
= Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize));
2606
def.
SizeCache
= -def.MeasureSize;
2628
def.
SizeCache
= totalStarWeight;
2645
def.
SizeCache
= resolvedSize;
2664
def.
SizeCache
= roundedSize;
2735
definition.
SizeCache
= final;
2751
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)
1541
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1552
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1587
double deltaSize = (maxMaxSize - tempDefinitions[i].
SizeCache
) * sizeToDistribute / totalRemainingSize;
1588
tempDefinitions[i].UpdateMinSize(tempDefinitions[i].
SizeCache
+ deltaSize);
1706
double userSize = Math.Max(availableSize - takenSize, 0.0) * (starValue / tempDefinitions[i].
SizeCache
);
1867
double maxRatio = (maxCount > 0) ? tempDefinitions[defCount + maxCount - 1].
SizeCache
: -1.0;
2010
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2112
roundingErrors[i] = definitions[i].
SizeCache
;
2113
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2151
roundingErrors[i] = definitions[i].
SizeCache
;
2152
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2155
allPreferredArrangeSize += definitions[i].
SizeCache
;
2193
double userSize = Math.Max(finalSize - allPreferredArrangeSize, 0.0) * (starValue / definitions[definitionIndices[i]].
SizeCache
);
2201
roundingErrors[definitionIndices[i]] = definitions[definitionIndices[i]].
SizeCache
;
2202
definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].
SizeCache
, dpi);
2205
allPreferredArrangeSize += definitions[definitionIndices[i]].
SizeCache
;
2218
double final = definitions[definitionIndex].
SizeCache
+ (sizeToDistribute / (definitions.Length - i));
2221
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2228
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2231
sizeToDistribute -= (final - definitions[definitionIndex].
SizeCache
);
2245
roundingErrors[i] = roundingErrors[i] - definitions[i].
SizeCache
;
2260
double final = definition.
SizeCache
- dpiIncrement;
2262
if (final < definition.
SizeCache
)
2276
double final = definition.
SizeCache
+ dpiIncrement;
2278
if (final > definition.
SizeCache
)
2292
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2435
takenSize += def.
SizeCache
;
2475
double maxRatio = (maxCount > 0) ? definitions[definitionIndices[defCount + maxCount - 1]].
SizeCache
: -1.0;
2635
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2662
double roundedSize = UIElement.RoundLayoutValue(def.
SizeCache
, dpi);
2663
roundingErrors[i] = (roundedSize - def.
SizeCache
);
2729
double final = definition.
SizeCache
- dpiIncrement;
2731
if (final < definition.
SizeCache
)
2745
double final = definition.
SizeCache
+ dpiIncrement;
2747
if (final > definition.
SizeCache
)
2762
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2849
size += definitions[i].
SizeCache
;
3642
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3657
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3671
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3696
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3722
double xprime = definitionX.
SizeCache
- definitionX.MinSizeForArrange;
3723
double yprime = definitionY.
SizeCache
- definitionY.MinSizeForArrange;
3770
result = x.
SizeCache
.CompareTo(y.
SizeCache
);
3836
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);