NumberBox.ValidationMode 属性

定义

获取或设置输入无效时要调用的输入验证行为。

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

属性值

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

适用于