29 instantiations of GridLength
PresentationFramework (25)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
2190
_calculatedColumns[i].UserWidth = new
GridLength
(iP, GridUnitType.Star);
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (5)
98
colDef1.Width = new
GridLength
(lineWidth);
99
colDef2.Width = new
GridLength
(headerWidth);
100
colDef3.Width = new
GridLength
(1, GridUnitType.Star);
106
rowDef1.Height = new
GridLength
(borderHeight / 2);
107
rowDef2.Height = new
GridLength
(1, GridUnitType.Star);
src\Framework\System\Windows\Controls\DefinitionBase.cs (1)
842
_userSize = new
GridLength
(1, GridUnitType.Auto);
src\Framework\System\Windows\Controls\GridSplitter.cs (5)
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));
860
SetDefinitionLength(_resizeData.Definition1, new
GridLength
(definition1Pixels));
864
SetDefinitionLength(_resizeData.Definition2, new
GridLength
(definition2Pixels));
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 (2)
186
internal static GridLength DefaultWidth { get { return (new
GridLength
(0, GridUnitType.Auto)); } }
247
new
GridLength
(0, GridUnitType.Auto),
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1683
table.Columns[columnIndex].Width = new
GridLength
(columnWidths[columnIndex]);
src\Framework\System\Windows\GridLength.cs (1)
255
private static readonly GridLength s_auto = new
GridLength
(1.0, GridUnitType.Auto);
src\Framework\System\Windows\GridLengthConverter.cs (2)
144
return new
GridLength
(value, type);
265
return (new
GridLength
(value, unit));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4906
bamlType.DefaultConstructor = delegate() { return new System.Windows.
GridLength
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1306
case KnownElements.GridLength: o = new System.Windows.
GridLength
(); break;
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
187
return new
GridLength
(unitValue, unitType);
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (3)
35
private GridLength _valueColumnWidth = new
GridLength
(0);
112
this.ValueColumnWidth = new
GridLength
(value * this.ValueColumnPercentage);
143
this.ValueColumnWidth = new
GridLength
(value * this.ContainerWidth);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
886
this.designerViewGrid.RowDefinitions[2].Height = new
GridLength
(0);
45 references to GridLength
PresentationFramework (40)
src\Framework\MS\Internal\PtsTable\CalculatedColumn.cs (2)
92
internal
GridLength
UserWidth
173
private
GridLength
_userWidth; // user specified width for the column
src\Framework\System\Windows\Controls\DefinitionBase.cs (9)
172
if (((
GridLength
) e.OldValue).GridUnitType != ((
GridLength
) e.NewValue).GridUnitType)
192
return (((
GridLength
)value).Value >= 0);
301
internal
GridLength
UserSize
433
internal
GridLength
UserSizeValueCache
437
return (
GridLength
) GetValue(
831
internal
GridLength
UserSize
849
GridLength
currentGridLength = _registry[i].UserSizeValueCache;
934
private
GridLength
_userSize; // shared state
src\Framework\System\Windows\Controls\GridSplitter.cs (3)
783
private static void SetDefinitionLength(DefinitionBase definition,
GridLength
length)
1021
public
GridLength
OriginalDefinition1Length;
1022
public
GridLength
OriginalDefinition2Length;
src\Framework\System\Windows\Documents\TableColumn.cs (6)
73
public
GridLength
Width
75
get { return (
GridLength
) GetValue(WidthProperty); }
186
internal static
GridLength
DefaultWidth { get { return (new GridLength(0, GridUnitType.Auto)); } }
203
GridLength
gridLength = (
GridLength
) value;
244
typeof(
GridLength
),
src\Framework\System\Windows\GridLength.cs (11)
52
public struct GridLength : IEquatable<
GridLength
>
132
public static bool operator == (
GridLength
gl1,
GridLength
gl2)
145
public static bool operator != (
GridLength
gl1,
GridLength
gl2)
159
if(oCompare is
GridLength
)
161
GridLength
l = (
GridLength
)oCompare;
174
public bool Equals(
GridLength
gridLength)
237
public static
GridLength
Auto
255
private static readonly
GridLength
s_auto = new GridLength(1.0, GridUnitType.Auto);
src\Framework\System\Windows\GridLengthConverter.cs (6)
184
&& value is
GridLength
)
186
GridLength
gl = (
GridLength
)value;
195
ConstructorInfo ci = typeof(
GridLength
).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) });
218
static internal string ToString(
GridLength
gl, CultureInfo cultureInfo)
258
static internal
GridLength
FromString(string s, CultureInfo cultureInfo)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
347
case 255: t = () => typeof(
GridLength
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4904
typeof(System.Windows.
GridLength
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5799
case KnownElements.GridLength: t = typeof(System.Windows.
GridLength
); break;
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (2)
813
if (gridLength != null && gridLength is
GridLength
)
815
_sharedWidthContainer.ContainerWidth = arrangeBounds.Width - ((
GridLength
)gridLength).Value;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (2)
35
private
GridLength
_valueColumnWidth = new GridLength(0);
55
public
GridLength
ValueColumnWidth
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
75
GridLength
bottomPaneHeight;