Class ColumnDefinition
Holds a column definitions for a Grid.
public class ColumnDefinition : DefinitionBase, INotifyPropertyChanged
- Inheritance
-
ColumnDefinition
- Implements
- Inherited Members
Constructors
ColumnDefinition()
Initializes a new instance of the ColumnDefinition class.
public ColumnDefinition()
ColumnDefinition(GridLength)
Initializes a new instance of the ColumnDefinition class.
public ColumnDefinition(GridLength width)
Parameters
width
GridLengthThe width of the column.
ColumnDefinition(double, GridUnitType)
Initializes a new instance of the ColumnDefinition class.
public ColumnDefinition(double value, GridUnitType type)
Parameters
value
doubleThe width of the column.
type
GridUnitTypeThe width unit of the column.
Fields
MaxWidthProperty
Defines the MaxWidth property.
public static readonly StyledProperty<double> MaxWidthProperty
Field Value
MinWidthProperty
Defines the MinWidth property.
public static readonly StyledProperty<double> MinWidthProperty
Field Value
WidthProperty
Defines the Width property.
public static readonly StyledProperty<GridLength> WidthProperty
Field Value
Properties
ActualWidth
Gets the actual calculated width of the column.
public double ActualWidth { get; }
Property Value
MaxWidth
Gets or sets the maximum width of the column in DIPs.
public double MaxWidth { get; set; }
Property Value
MinWidth
Gets or sets the minimum width of the column in DIPs.
public double MinWidth { get; set; }
Property Value
Width
Gets or sets the width of the column.
public GridLength Width { get; set; }