Share via


InfoBadge.Value Propiedad

Definición

Obtiene o establece el entero que se va a mostrar en un InfoBadge numérico.

Esta documentación se aplica a WinUI 2 para UWP (para WinUI en la SDK de Aplicaciones para Windows, consulta los espacios de nombres SDK de Aplicaciones para Windows).

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; }
Public Property Value As Integer

Valor de propiedad

Int32

int

Entero que se va a mostrar en un InfoBadge numérico. Los valores predeterminados son -1.

Atributos
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Comentarios

No hay ningún valor máximo para esta propiedad, pero los valores deben ser mayores o iguales que cero. Cualquier valor menor que -1 producirá un error de argumento. Un valor de -1 se considera el valor NULL.

InfoBadge se expande para dar cabida a grandes números. Asegúrese de que el diseño tiene en cuenta esto.

Se aplica a

Consulte también