NumberBox.ValidationMode Property

Definition

Gets or sets the input validation behavior to invoke when invalid input is entered.

public:
 property NumberBoxValidationMode ValidationMode { NumberBoxValidationMode get(); void set(NumberBoxValidationMode value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
NumberBoxValidationMode ValidationMode();

void ValidationMode(NumberBoxValidationMode value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
NumberBoxValidationMode ValidationMode();

void ValidationMode(NumberBoxValidationMode value);
public NumberBoxValidationMode ValidationMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public NumberBoxValidationMode ValidationMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
var numberBoxValidationMode = numberBox.validationMode;
numberBox.validationMode = numberBoxValidationMode;
Public Property ValidationMode As NumberBoxValidationMode

Property Value

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Applies to