70 references to GridUnitType
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
114
toolWindowGrid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(ToolBarHeight,
GridUnitType
.Pixel) });
122
toolbarGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(ToolBarHeight,
GridUnitType
.Pixel) });
123
toolbarGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(ToolBarHeight,
GridUnitType
.Pixel) });
PresentationFramework (67)
MS\Internal\PtsHost\TableParaClient.cs (7)
1962
case (
GridUnitType
.Auto):
1968
case (
GridUnitType
.Star):
1972
case (
GridUnitType
.Pixel):
2047
Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Auto || _calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Star || _calculatedColumns[i].UserWidth.GridUnitType ==
GridUnitType
.Pixel, "Unexpected GridUnitType");
2069
_calculatedColumns[i].UserWidth = new GridLength(iP,
GridUnitType
.Star);
System\Windows\Controls\BorderGapMaskConverter.cs (2)
90
colDef3.Width = new GridLength(1,
GridUnitType
.Star);
97
rowDef2.Height = new GridLength(1,
GridUnitType
.Star);
System\Windows\Controls\ColumnDefinition.cs (1)
1027
new GridLength(1.0,
GridUnitType
.Star),
System\Windows\Controls\DefinitionBase.cs (5)
843
_userSize = new GridLength(1,
GridUnitType
.Auto);
847
Debug.Assert( _userSize.GridUnitType ==
GridUnitType
.Auto
848
|| _userSize.GridUnitType ==
GridUnitType
.Pixel );
851
if (currentGridLength.GridUnitType ==
GridUnitType
.Pixel)
853
if (_userSize.GridUnitType ==
GridUnitType
.Auto)
System\Windows\Controls\Grid.cs (7)
1102
case (
GridUnitType
.Pixel):
1108
case (
GridUnitType
.Auto):
1112
case (
GridUnitType
.Star):
2133
case (
GridUnitType
.Pixel):
2137
case (
GridUnitType
.Auto):
2419
case (
GridUnitType
.Pixel):
2423
case (
GridUnitType
.Auto):
System\Windows\Controls\GridSplitter.cs (3)
842
SetDefinitionLength(definition, new GridLength(definition1Pixels,
GridUnitType
.Star));
846
SetDefinitionLength(definition, new GridLength(definition2Pixels,
GridUnitType
.Star ));
850
SetDefinitionLength(definition, new GridLength(GetActualLength(definition),
GridUnitType
.Star));
System\Windows\Controls\RowDefinition.cs (1)
1027
new GridLength(1.0,
GridUnitType
.Star),
System\Windows\Controls\ScrollViewer.cs (4)
2705
gridColumn1.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0,
GridUnitType
.Star));
2706
gridColumn2.SetValue(ColumnDefinition.WidthProperty, new GridLength(1.0,
GridUnitType
.Auto));
2707
gridRow1.SetValue(RowDefinition.HeightProperty, new GridLength(1.0,
GridUnitType
.Star));
2708
gridRow2.SetValue(RowDefinition.HeightProperty, new GridLength(1.0,
GridUnitType
.Auto));
System\Windows\Documents\TableColumn.cs (5)
181
internal static GridLength DefaultWidth { get { return (new GridLength(0,
GridUnitType
.Auto)); } }
199
if ((gridLength.GridUnitType ==
GridUnitType
.Pixel || gridLength.GridUnitType ==
GridUnitType
.Star) &&
206
if (gridLength.GridUnitType ==
GridUnitType
.Pixel && (gridLength.Value > maxPixel))
242
new GridLength(0,
GridUnitType
.Auto),
System\Windows\GridLength.cs (13)
69
: this(pixels,
GridUnitType
.Pixel)
90
public GridLength(double value,
GridUnitType
type)
100
if ( type !=
GridUnitType
.Auto
101
&& type !=
GridUnitType
.Pixel
102
&& type !=
GridUnitType
.Star )
107
_unitValue = (type ==
GridUnitType
.Auto) ? 0.0 : value;
188
public bool IsAbsolute { get { return (_unitType ==
GridUnitType
.Pixel); } }
194
public bool IsAuto { get { return (_unitType ==
GridUnitType
.Auto); } }
200
public bool IsStar { get { return (_unitType ==
GridUnitType
.Star); } }
205
public double Value { get { return ((_unitType ==
GridUnitType
.Auto) ? 1.0 : _unitValue); } }
210
public
GridUnitType
GridUnitType { get { return (_unitType); } }
248
private
GridUnitType
_unitType; // unit type storage
251
private static readonly GridLength s_auto = new GridLength(1.0,
GridUnitType
.Auto);
System\Windows\GridLengthConverter.cs (7)
125
GridUnitType
type;
133
type =
GridUnitType
.Auto;
137
type =
GridUnitType
.Pixel;
183
ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(
GridUnitType
) });
211
case (
GridUnitType
.Auto):
216
case (
GridUnitType
.Star):
249
GridUnitType
unit;
System\Windows\Markup\XamlGridLengthSerializer.cs (12)
76
GridUnitType
gridUnitType;
91
&& gridUnitType ==
GridUnitType
.Pixel )
147
GridUnitType
unitType;
153
unitType =
GridUnitType
.Pixel;
158
unitType = (
GridUnitType
)(unitAndFlags & 0x1F);
188
out
GridUnitType
unit)
193
unit =
GridUnitType
.Pixel;
206
unit = (
GridUnitType
)i;
217
unit = (
GridUnitType
)i;
241
&& unit is
GridUnitType
.Auto or
GridUnitType
.Star)
248
Debug.Assert( unit ==
GridUnitType
.Pixel