匯出 (0) 列印
全部展開

FrameworkElement.MaxHeight Property

Gets or sets the maximum height constraint of a FrameworkElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public double MaxHeight { get; set; }
<frameworkElement MaxHeight="double"/>

Property Value

Type: System.Double
The maximum height of the object, in pixels. The default value is PositiveInfinity. This value can be any value equal to or greater than 0. PositiveInfinity is also valid.

Dependency property identifier field: MaxHeightProperty

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

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

社群新增項目

新增
顯示:
© 2014 Microsoft