Udostępnij za pośrednictwem


FrameworkElement.MinHeight Property

Definition

Gets or sets the minimum height constraint of a FrameworkElement.

public:
 property double MinHeight { double get(); void set(double value); };
double MinHeight();

void MinHeight(double value);
public double MinHeight { get; set; }
var double = frameworkElement.minHeight;
frameworkElement.minHeight = double;
Public Property MinHeight As Double
<frameworkElement MinHeight="double"/>

Property Value

Double

double

The minimum height 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

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

Applies to

See also