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