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