0 out of 1 rated this helpful - Rate this topic

FrameworkElement.MinWidth Property

April 12, 2014

Gets or sets the minimum width constraint of a FrameworkElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
'Declaration
Public Property MinWidth As Double
<frameworkElement MinWidth="double"/>

Property Value

Type: System.Double
The minimum width of the element, in logical pixels. The default is 0. This value can be any value equal to or greater than 0. However, PositiveInfinity is not valid.

Dependency property identifier field: MinWidthProperty

This is one of three properties on FrameworkElement that specify width information. The other two are Width and MaxWidth. If there is a conflict between these values, the order of application for actual width determination is first MinWidth must be honored, then MaxWidth, and finally if each of these are within bounds, Width.

Non-integral values for MaxWidth are technically permitted, but should generally be avoided and are normally rounded by the default layout rounding behavior.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.