View.VerticalOptions 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置定义 LayoutOptions 元素在布局周期中的布局方式的 。 这是一种可绑定属性。
public:
property Microsoft::Maui::Controls::LayoutOptions VerticalOptions { Microsoft::Maui::Controls::LayoutOptions get(); void set(Microsoft::Maui::Controls::LayoutOptions value); };
public Microsoft.Maui.Controls.LayoutOptions VerticalOptions { get; set; }
member this.VerticalOptions : Microsoft.Maui.Controls.LayoutOptions with get, set
Public Property VerticalOptions As LayoutOptions
属性值
一个 LayoutOptions ,它定义如何布局元素。 除非另有说明,否则默认值为 Fill 。
注解
当 VerticalOptions 父布局的 Y 轴上存在多余的可用空间时,分配会修改元素的布局方式。 如果布局中的多个元素设置为展开,则额外空间按比例分布。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈