66 references to GridUnitType
PresentationFramework (65)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (7)
2083
case (
GridUnitType
.Auto):
2089
case (
GridUnitType
.Star):
2093
case (
GridUnitType
.Pixel):
2168
Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Auto || _calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Star || _calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Pixel, "Unexpected GridUnitType");
2190
_calculatedColumns[i].UserWidth = new GridLength(iP,
GridUnitType
.Star);
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (2)
100
colDef3.Width = new GridLength(1,
GridUnitType
.Star);
107
rowDef2.Height = new GridLength(1,
GridUnitType
.Star);
src\Framework\System\Windows\Controls\DefinitionBase.cs (5)
842
_userSize = new GridLength(1,
GridUnitType
.Auto);
846
Debug.Assert( _userSize.GridUnitType ==
GridUnitType
.Auto
847
|| _userSize.GridUnitType ==
GridUnitType
.Pixel );
850
if (currentGridLength.GridUnitType ==
GridUnitType
.Pixel)
852
if (_userSize.GridUnitType ==
GridUnitType
.Auto)
src\Framework\System\Windows\Controls\Grid.cs (7)
1165
case (
GridUnitType
.Pixel):
1171
case (
GridUnitType
.Auto):
1175
case (
GridUnitType
.Star):
2197
case (
GridUnitType
.Pixel):
2201
case (
GridUnitType
.Auto):
2486
case (
GridUnitType
.Pixel):
2490
case (
GridUnitType
.Auto):
src\Framework\System\Windows\Controls\GridSplitter.cs (3)
844
SetDefinitionLength(definition, new GridLength(definition1Pixels,
GridUnitType
.Star));
848
SetDefinitionLength(definition, new GridLength(definition2Pixels,
GridUnitType
.Star ));
852
SetDefinitionLength(definition, new GridLength(GetActualLength(definition),
GridUnitType
.Star));
src\Framework\System\Windows\Controls\ScrollViewer.cs (4)
2745
gridColumn1.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0,
GridUnitType
.Star));
2746
gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0,
GridUnitType
.Auto));
2747
gridRow1.SetValue(RowDefinition.HeightProperty, new GridLength(1.0,
GridUnitType
.Star));
2748
gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0,
GridUnitType
.Auto));
src\Framework\System\Windows\Documents\TableColumn.cs (5)
186
internal static GridLength DefaultWidth { get { return (new GridLength(0,
GridUnitType
.Auto)); } }
204
if ((gridLength.GridUnitType ==
GridUnitType
.Pixel || gridLength.GridUnitType ==
GridUnitType
.Star) &&
211
if (gridLength.GridUnitType ==
GridUnitType
.Pixel && (gridLength.Value > maxPixel))
247
new GridLength(0,
GridUnitType
.Auto),
src\Framework\System\Windows\GridLength.cs (13)
73
: this(pixels,
GridUnitType
.Pixel)
94
public GridLength(double value,
GridUnitType
type)
104
if ( type !=
GridUnitType
.Auto
105
&& type !=
GridUnitType
.Pixel
106
&& type !=
GridUnitType
.Star )
111
_unitValue = (type ==
GridUnitType
.Auto) ? 0.0 : value;
192
public bool IsAbsolute { get { return (_unitType ==
GridUnitType
.Pixel); } }
198
public bool IsAuto { get { return (_unitType ==
GridUnitType
.Auto); } }
204
public bool IsStar { get { return (_unitType ==
GridUnitType
.Star); } }
209
public double Value { get { return ((_unitType ==
GridUnitType
.Auto) ? 1.0 : _unitValue); } }
214
public
GridUnitType
GridUnitType { get { return (_unitType); } }
252
private
GridUnitType
_unitType; // unit type storage
255
private static readonly GridLength s_auto = new GridLength(1.0,
GridUnitType
.Auto);
src\Framework\System\Windows\GridLengthConverter.cs (7)
129
GridUnitType
type;
137
type =
GridUnitType
.Auto;
141
type =
GridUnitType
.Pixel;
195
ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(
GridUnitType
) });
223
case (
GridUnitType
.Auto):
228
case (
GridUnitType
.Star):
261
GridUnitType
unit;
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (12)
81
GridUnitType
gridUnitType;
96
&& gridUnitType ==
GridUnitType
.Pixel )
156
GridUnitType
unitType;
162
unitType =
GridUnitType
.Pixel;
167
unitType = (
GridUnitType
)(unitAndFlags & 0x1F);
197
out
GridUnitType
unit)
202
unit =
GridUnitType
.Pixel;
216
unit = (
GridUnitType
)i;
227
unit = (
GridUnitType
)i;
254
&& ( unit ==
GridUnitType
.Auto
255
|| unit ==
GridUnitType
.Star ) )
262
Debug.Assert( unit ==
GridUnitType
.Pixel
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (1)
61
if (value.GridUnitType !=
GridUnitType
.Pixel)