語言

InfoBadge.Value 屬性

定義

取得或設定整數顯示在數字 資訊徽章中。

public:
 property int Value { int get(); void set(int value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
int Value();

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

void Value(int value);
public int Value { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
public int Value { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] set; }
var int32 = infoBadge.value;
infoBadge.value = int32;
Public Property Value As Integer

屬性值

Int32

int

整數則顯示在數字 資訊徽章中。 預設值是 -1。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

此性質沒有最大值,但值必須大於或等於零。 任何小於 -1 的值都會導致參數錯誤。 -1 的值被視為空值。

資訊徽章可擴充以容納大量會員。 確保你的版面設計能考慮到這點。

適用於

另請參閱