MaxWidth Property
Collapse the table of content
Expand the table of content

ColumnDefinition.MaxWidth Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Property MaxWidth As Double
<ColumnDefinition MaxWidth="double"/>

Property Value

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

Dependency property identifier field: MaxWidthProperty

When you use multiple width settings in a ColumnDefinition, 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:
© 2017 Microsoft