NumberBox.ValidationMode 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置输入无效时要调用的输入验证行为。
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