GridUnitType 枚举

定义

描述 GridLength 对象具有的值的种类。Describes the kind of value that a GridLength object is holding.

public enum class GridUnitType
public enum GridUnitType
type GridUnitType = 
Public Enum GridUnitType
继承
GridUnitType

字段

Auto 0

该大小由内容对象的大小属性确定。The size is determined by the size properties of the content object.

Pixel 1

该值表示为一个像素。The value is expressed as a pixel.

Star 2

该值表示为可用空间的加权比例。The value is expressed as a weighted proportion of available space.

注解

星号大小调整用于按加权比例分布可用空间。Star sizing is used to distribute available space by weighted proportions.

可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML)中, 星号值表示为 * 或 2 *。In 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML), star values are expressed as * or 2*. 在第一种情况下, 行或列将接收一次可用空间;在第二种情况下, 行或列将接收两次可用空间, 依此类推。In the first case, the row or column would receive one times the available space; in the second case, the row or column would receive two times the available space, and so on.

适用于

另请参阅