Some controls set the default MinHeight / MinWidth to ThemeResource. You can change this value when defining a control or change its style - you will find there (for example, in Button ):
// in Style // ... <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> // ...
If you do not override these values, the minimum will be met, if there is a conflict, on MSDN :
MinWidth is one of three writable properties in the FrameworkElement that define width information. The other two are MaxWidth and Width. If there is a conflict between these values, the application for determining the actual width is that MinWidth must first be executed, then MaxWidth, and finally, if it is within the boundaries, Width. All of these properties are recommendations for the layout behavior of the element's parent in the object tree. The width of the object after executing the layout is available as the value of the ActualWidth property.
Romasz
source share