25 writes to SizeCache
PresentationFramework (25)
src\Framework\System\Windows\Controls\Grid.cs (25)
1538
definitions[i].
SizeCache
= maxSize;
1730
definitions[i].
SizeCache
= 0;
1742
definitions[i].
SizeCache
= maxSize / starValue;
1764
tempDefinitions[i].
SizeCache
= allStarWeights;
1898
def.
SizeCache
= starWeight / effectiveMaxSize;
2076
def.
SizeCache
= totalStarWeight;
2170
definitions[i].
SizeCache
= 0;
2182
definitions[i].
SizeCache
= maxSize / starValue;
2186
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2221
definitions[i].
SizeCache
= Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize));
2225
definitions[i].
SizeCache
= UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2252
definitions[definitionIndices[i]].
SizeCache
= allStarWeights;
2272
definitions[definitionIndices[i]].
SizeCache
= resolvedSize;
2276
definitions[definitionIndices[i]].
SizeCache
= UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi);
2307
definitions[definitionIndex].
SizeCache
= final;
2342
definition.
SizeCache
= final;
2358
definition.
SizeCache
= final;
2476
def.
SizeCache
= starWeight / effectiveMaxSize;
2510
def.
SizeCache
= Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize));
2670
def.
SizeCache
= -def.MeasureSize;
2693
def.
SizeCache
= totalStarWeight;
2710
def.
SizeCache
= resolvedSize;
2730
def.
SizeCache
= roundedSize;
2802
definition.
SizeCache
= final;
2818
definition.
SizeCache
= final;
54 references to SizeCache
PresentationFramework (54)
src\Framework\System\Windows\Controls\DefinitionBase.cs (1)
908
if (!DoubleUtil.AreClose(sharedMinSize, definitionBase.
SizeCache
))
src\Framework\System\Windows\Controls\Grid.cs (53)
1614
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1625
tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].
SizeCache
));
1660
double deltaSize = (maxMaxSize - tempDefinitions[i].
SizeCache
) * sizeToDistribute / totalRemainingSize;
1661
tempDefinitions[i].UpdateMinSize(tempDefinitions[i].
SizeCache
+ deltaSize);
1779
double userSize = Math.Max(availableSize - takenSize, 0.0) * (starValue / tempDefinitions[i].
SizeCache
);
1940
double maxRatio = (maxCount > 0) ? tempDefinitions[defCount + maxCount - 1].
SizeCache
: -1.0;
2083
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2185
roundingErrors[i] = definitions[i].
SizeCache
;
2186
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2224
roundingErrors[i] = definitions[i].
SizeCache
;
2225
definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].
SizeCache
, dpi);
2228
allPreferredArrangeSize += definitions[i].
SizeCache
;
2267
double userSize = Math.Max(finalSize - allPreferredArrangeSize, 0.0) * (starValue / definitions[definitionIndices[i]].
SizeCache
);
2275
roundingErrors[definitionIndices[i]] = definitions[definitionIndices[i]].
SizeCache
;
2276
definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].
SizeCache
, dpi);
2279
allPreferredArrangeSize += definitions[definitionIndices[i]].
SizeCache
;
2293
double final = definitions[definitionIndex].
SizeCache
+ (sizeToDistribute / (definitions.Length - i));
2296
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2303
final = Math.Min(final, definitions[definitionIndex].
SizeCache
);
2306
sizeToDistribute -= (final - definitions[definitionIndex].
SizeCache
);
2320
roundingErrors[i] = roundingErrors[i] - definitions[i].
SizeCache
;
2336
double final = definition.
SizeCache
- dpiIncrement;
2338
if (final < definition.
SizeCache
)
2352
double final = definition.
SizeCache
+ dpiIncrement;
2354
if (final > definition.
SizeCache
)
2368
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2511
takenSize += def.
SizeCache
;
2553
double maxRatio = (maxCount > 0) ? definitions[definitionIndices[defCount + maxCount - 1]].
SizeCache
: -1.0;
2700
double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.
SizeCache
) : 0.0;
2728
double roundedSize = UIElement.RoundLayoutValue(def.
SizeCache
, dpi);
2729
roundingErrors[i] = (roundedSize - def.
SizeCache
);
2796
double final = definition.
SizeCache
- dpiIncrement;
2798
if (final < definition.
SizeCache
)
2812
double final = definition.
SizeCache
+ dpiIncrement;
2814
if (final > definition.
SizeCache
)
2829
definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].
SizeCache
;
2916
size += definitions[i].
SizeCache
;
3727
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3742
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3765
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3786
double xprime = definitionX.
SizeCache
- definitionX.MinSizeForArrange;
3787
double yprime = definitionY.
SizeCache
- definitionY.MinSizeForArrange;
3830
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
3871
double xprime = definitionX.
SizeCache
- definitionX.MinSizeForArrange;
3872
double yprime = definitionY.
SizeCache
- definitionY.MinSizeForArrange;
3950
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);
4054
result = definitionX.
SizeCache
.CompareTo(definitionY.
SizeCache
);