Condividi tramite


InfoBadge.Value Proprietà

Definizione

Ottiene o imposta l'intero da visualizzare in un infoBadge numerico.

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

Valore della proprietà

Int32

int

Intero da visualizzare in un InfoBadge numerico. Le impostazioni predefinite sono -1.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Commenti

Non esiste alcun valore massimo per questa proprietà, ma i valori devono essere maggiori o uguali a zero. Qualsiasi valore minore di -1 genera un errore di argomento. Il valore -1 viene considerato il valore Null.

InfoBadge si espande per ospitare numeri di grandi dimensioni. Assicurarsi che gli account di layout vengano visualizzati.

Si applica a

Vedi anche