VisualElement.MinimumWidthRequest 屬性

定義

取得或設定專案在版面配置期間要求的最低寬度。 這是可繫結屬性。

public:
 property double MinimumWidthRequest { double get(); void set(double value); };
public double MinimumWidthRequest { get; set; }
member this.MinimumWidthRequest : double with get, set
Public Property MinimumWidthRequest As Double

屬性值

元素所需的最小寬度。 預設值為 -1。

備註

默認值為 -1,表示該值為 unset;有效的最小寬度會是零。

MinimumWidthRequest 是用來確保元素在版面配置期間至少具有指定的寬度。

適用於