21 writes to MeasureSize
PresentationFramework (21)
System\Windows\Controls\Grid.cs (21)
1120definitions[i].MeasureSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1655definitions[i].MeasureSize = 0; 1665definitions[i].MeasureSize = starValue; 1710tempDefinitions[i].MeasureSize = resolvedSize; 1750def.MeasureSize = 1.0; // meaning "not yet resolved in phase 3" 1816def.MeasureSize = starWeight / def.MinSize; 1899resolvedDef.MeasureSize = -resolvedSize; 1945def.MeasureSize = 1.0; // mark as 'not yet resolved' 1961def.MeasureSize = 1.0; // mark as 'not yet resolved' 1980def.MeasureSize = -def.MeasureSize; 1986def.MeasureSize = StarWeight(def, scale); 2015def.MeasureSize = resolvedSize; 2095definitions[i].MeasureSize = 0; 2105definitions[i].MeasureSize = starValue; 2329def.MeasureSize = 1.0; // meaning "not yet resolved in phase 3" 2391def.MeasureSize = starWeight / def.MinSizeForArrange; 2510resolvedDef.MeasureSize = -resolvedSize; 2555resolvedDef.MeasureSize -= (finalSize - takenSize); 2570def.MeasureSize = 1.0; // mark as 'not yet resolved' 2586def.MeasureSize = 1.0; // mark as 'not yet resolved' 2611def.MeasureSize = StarWeight(def, scale);
37 references to MeasureSize
PresentationFramework (37)
System\Windows\Controls\Grid.cs (37)
1389: definitions[i].MeasureSize; 1645takenSize += definitions[i].MeasureSize; 1689allStarWeights += tempDefinitions[i].MeasureSize; 1697double starValue = tempDefinitions[i].MeasureSize; 1800takenSize += def.MeasureSize; 1803if (def.MeasureSize < 0.0) 1805takenSize += -def.MeasureSize; // already resolved 1856if (def.SizeType == LayoutTimeSizeType.Star && def.MeasureSize > 0.0) 1865double minRatio = (minCount > 0) ? tempDefinitions[minCount - 1].MeasureSize : Double.PositiveInfinity; 1908while (minCount > 0 && tempDefinitions[minCount - 1].MeasureSize < 0.0) 1913while (maxCount > 0 && tempDefinitions[defCount + maxCount - 1].MeasureSize < 0.0) 1977if (def.MeasureSize < 0.0) 1980def.MeasureSize = -def.MeasureSize; 2001totalStarWeight += def.MeasureSize; 2009double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(availableSize - takenSize, 0.0) * (def.MeasureSize / def.SizeCache) : 0.0; 2176allStarWeights += definitions[definitionIndices[i]].MeasureSize; 2184double starValue = definitions[definitionIndices[i]].MeasureSize; 2378if (def.MeasureSize < 0.0) 2380takenSize += -def.MeasureSize; // already resolved 2464if (def.UserSize.IsStar && def.MeasureSize > 0.0) 2473double minRatio = (minCount > 0) ? definitions[definitionIndices[minCount - 1]].MeasureSize : Double.PositiveInfinity; 2519while (minCount > 0 && definitions[definitionIndices[minCount - 1]].MeasureSize < 0.0) 2524while (maxCount > 0 && definitions[definitionIndices[defCount + maxCount - 1]].MeasureSize < 0.0) 2602if (def.MeasureSize < 0.0) 2605def.SizeCache = -def.MeasureSize; 2626totalStarWeight += def.MeasureSize; 2634double resolvedSize = (def.MeasureSize > 0.0) ? Math.Max(finalSize - takenSize, 0.0) * (def.MeasureSize / def.SizeCache) : 0.0; 3753result = y.MeasureSize.CompareTo(x.MeasureSize); 3784result = x.MeasureSize.CompareTo(y.MeasureSize); 3809result = definitionY.MeasureSize.CompareTo(definitionX.MeasureSize); 3861result = definitionX.MeasureSize.CompareTo(definitionY.MeasureSize);