Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.54 KB

frameworkelement_minwidth.md

File metadata and controls

34 lines (21 loc) · 1.54 KB
-api-id -api-type
P:Microsoft.UI.Xaml.FrameworkElement.MinWidth
winrt property

Microsoft.UI.Xaml.FrameworkElement.MinWidth

-description

Gets or sets the minimum width constraint of a FrameworkElement.

-xaml-syntax

<frameworkElement MinWidth="double"/>

-property-value

The minimum width of the object, in pixels. The default is 0. This value can be any value equal to or greater than 0. However, PositiveInfinity is not valid.

-remarks

MinWidth is one of three writable properties on FrameworkElement that specify width information. The other two are MaxWidth and Width. If there is a conflict between these values, the order of application for actual width determination is that first MinWidth must be honored, then MaxWidth, and finally, if it is within bounds, Width. All of these properties are recommendations to the layout behavior of the element's parent in the object tree. The width of the object after layout runs is available as the ActualWidth property value.

-examples

-see-also

MaxWidth, Width, HorizontalAlignment, Define layouts with XAML