2 writes to _calculatedColumns
PresentationFramework (2)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
2046
_calculatedColumns
= new CalculatedColumn[columns];
2057
_calculatedColumns
= newCalculatedColumns;
71 references to _calculatedColumns
PresentationFramework (71)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (71)
1384
return (
_calculatedColumns
);
2044
if (
_calculatedColumns
== null)
2048
else if (
_calculatedColumns
.Length != columns)
2053
_calculatedColumns
,
2055
Math.Min(
_calculatedColumns
.Length, columns));
2060
if (
_calculatedColumns
.Length > 0)
2064
while (i <
_calculatedColumns
.Length && i < Table.Columns.Count)
2066
_calculatedColumns
[i].UserWidth = Table.Columns[i].Width;
2070
while (i <
_calculatedColumns
.Length)
2072
_calculatedColumns
[i].UserWidth = TableColumn.DefaultWidth;
2079
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2081
switch (
_calculatedColumns
[i].UserWidth.GridUnitType)
2086
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
2090
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
2094
_calculatedColumns
[i].ValidateAuto(
2095
_calculatedColumns
[i].UserWidth.Value,
2096
_calculatedColumns
[i].UserWidth.Value);
2103
_durMinWidth +=
_calculatedColumns
[i].DurMinWidth;
2104
_durMaxWidth +=
_calculatedColumns
[i].DurMaxWidth;
2166
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2168
Debug.Assert(
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Auto ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Star ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType");
2169
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2171
Debug.Assert(0 <=
_calculatedColumns
[i].DurMinWidth && 0 <=
_calculatedColumns
[i].DurMaxWidth);
2172
durAutoMin +=
_calculatedColumns
[i].DurMinWidth;
2173
durAutoMax +=
_calculatedColumns
[i].DurMaxWidth;
2177
if (
_calculatedColumns
[i].UserWidth.IsStar)
2179
iP =
_calculatedColumns
[i].UserWidth.Value;
2190
_calculatedColumns
[i].UserWidth = new GridLength(iP, GridUnitType.Star);
2204
if (
_calculatedColumns
[i].DurMaxWidth * div > iP * mul)
2206
mul =
_calculatedColumns
[i].DurMaxWidth;
2210
durScalableMin +=
_calculatedColumns
[i].DurMinWidth;
2214
durAbsoluteMin +=
_calculatedColumns
[i].DurMinWidth;
2215
durAbsoluteMax +=
_calculatedColumns
[i].DurMaxWidth;
2452
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2454
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2457
_calculatedColumns
[i].DurWidth =
2459
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAutoMax - durAutoWidths) / (durAutoMax - durAutoMin))
2461
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMax) / durAutoMax)
2463
?
_calculatedColumns
[i].DurMaxWidth
2465
?
_calculatedColumns
[i].DurMinWidth
2468
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMin) / durAutoMax)
2471
else if (
_calculatedColumns
[i].UserWidth.IsStar)
2478
? (durTableUserWidth * (fP *
_calculatedColumns
[i].UserWidth.Value / iPercent) / 100)
2484
durAbsoluteAndAutoWidths -=
_calculatedColumns
[i].DurMinWidth;
2492
_calculatedColumns
[i].DurWidth = (
_calculatedColumns
[i].DurMinWidth + durAbsoluteAndAutoWidths);
2496
Debug.Assert(
_calculatedColumns
[i].UserWidth.IsAbsolute);
2499
_calculatedColumns
[i].DurWidth =
2506
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAbsoluteMax - durAbsoluteWidths) / (durAbsoluteMax - durAbsoluteMin))
2507
:
_calculatedColumns
[i].DurMaxWidth - (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteMax - durAbsoluteWidths) / durAbsoluteMax)
2509
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMax) / durAbsoluteMax)
2511
?
_calculatedColumns
[i].DurMaxWidth
2513
?
_calculatedColumns
[i].DurMinWidth
2516
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMin) / durAbsoluteMax)
2520
Debug.Assert(
_calculatedColumns
[i].DurMinWidth <=
_calculatedColumns
[i].DurMaxWidth);
2522
_calculatedColumns
[i].UrOffset = durTableWidth + cellSpacing / 2.0;
2524
durTableWidth +=
_calculatedColumns
[i].DurWidth + cellSpacing; // Advance to next column
2526
if (
_calculatedColumns
[i].PtsWidthChanged == PTS.True)