Share via


RatingControl.MaxRating 屬性

定義

取得或設定允許的評等值上限。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property int MaxRating { int get(); void set(int value); };
int MaxRating();

void MaxRating(int value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")]
int MaxRating();

void MaxRating(int value);
public int MaxRating { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")]
public int MaxRating { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="5")] set; }
Public Property MaxRating As Integer
<RatingControl MaxRating="int"/>

屬性值

Int32

int

允許的評等值上限。 預設值為 5。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於