Class ColumnDefinition
Defines column-specific properties that apply to Grid objects.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public sealed class ColumnDefinition : DependencyObject
Constructors
| Improve this Doc View SourceColumnDefinition()
Declaration
public ColumnDefinition()
Fields
| Improve this Doc View SourceMaxWidthProperty
Identifies the MaxWidth dependency property.
Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinWidthProperty
Identifies the MinWidth dependency property.
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
WidthProperty
Identifies the Width dependency property.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualWidth
Gets the rendered width of a FrameworkElement. The FrameworkElement must be in the visual tree, otherwise this property will return double.NaN.
Declaration
public double ActualWidth { get; }
Property Value
Type | Description |
---|---|
System.Double |
MaxWidth
Gets or sets a value that represents the maximum width of a ColumnDefinition. Returns a Double that represents the maximum width in pixels. The default is PositiveInfinity.
Declaration
public double MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MinWidth
Gets or sets a value that represents the minimum width of a ColumnDefinition. Returns a Double that represents the minimum width in pixels. The default is 0.
Declaration
public double MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Gets the calculated width of a ColumnDefinition element, or sets the GridLength value of a row that is defined by the ColumnDefinition. Returns the GridLength that represents the width of the row. The default value is 1.0
Declaration
public GridLength Width { get; set; }
Property Value
Type | Description |
---|---|
GridLength |
Methods
| Improve this Doc View SourceClone()
Returns a copy of the current ColumnDefinition.
Declaration
public ColumnDefinition Clone()
Returns
Type | Description |
---|---|
ColumnDefinition | A copy of the current ColumnDefinition. |