FrameworkElement.MinWidth Property
.NET Framework 4.6 and 4.5
Gets or sets the minimum width constraint of the element.
Namespace: System.Windows
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
[TypeConverterAttribute(typeof(LengthConverter))] [LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable)] public double MinWidth { get; set; }
<object MinWidth="double"/> - or - <object MinWidth="qualifiedDouble"/>
XAML Values
Property Value
Type: System.DoubleThe minimum width of the element, in device-independent units (1/96th inch per unit). The default value is 0.0. This value can be any value equal to or greater than 0.0. However, PositiveInfinity is not valid, nor is Double.NaN.
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.
The value restrictions on the Double value are enforced by a ValidateValueCallback mechanism. If you attempt to set an invalid value, a run-time exception is thrown.
Show: