ColumnDefinition.MinWidth Property

July 28, 2014

Gets or sets a value that represents the minimum width of a ColumnDefinition.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double MinWidth { get; set; }
<ColumnDefinition MinWidth="double"/>

Property Value

Type: System.Double
A Double that represents the minimum width in logical pixels. The default is 0.

Dependency property identifier field: MinWidthProperty

When you use these values together in the same code example, the MinWidth value takes precedence over the MaxWidth value, which in turn takes precedence over the Width value.

When you add or remove rows or columns, the ActualWidth for all ColumnDefinition elements and the ActualHeight of all RowDefinition elements become zero until Measure is called.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft