RowDefinition.MaxHeight 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值表示最大高度 RowDefinition。
public:
property double MaxHeight { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
public double MaxHeight { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
member this.MaxHeight : double with get, set
Public Property MaxHeight As Double
属性值
表示最大高度的 A Double 。
- 属性
注解
在同一代码示例中使用这些值时, MinHeight 该值优先于 MaxHeight 值,而该值又优先于 Height 值。
添加或删除行或列时, ActualWidth 所有 ColumnDefinition 元素的所有元素和 ActualHeight 所有 RowDefinition 元素变为零,直到 Measure 调用为止。
XAML 属性用法
<object MaxHeight="double"/>
- or -
<object MaxHeight="qualifiedDouble"/>
XAML 值
值等于或大于Double但等于或小于0.0034的值的160000字符串表示形式。 不限定的值以与设备无关的像素进行度量。 字符串不需要显式包含小数点。
qualifiedDouble如上所述的双精度值(除外Auto)后跟以下单位说明符之一:px、、in、cmpt。
px (默认值) 是独立于设备的单位(每单位 1/96 英寸)
in 为英寸;1in==96px
cm 为厘米;1cm==(96/2.54) px
pt is points;1pt==(96/72) px
Dependency 属性信息
| 项目 | 价值 |
|---|---|
| 标识符字段 | MaxHeightProperty |
元数据属性设置为 true |
None |