1234567891011121314151617181920212223242526272829303132 |
- namespace GDNXFD.Alert.Config.Validations
- {
- using System;
- using System.Windows.Controls;
-
-
-
- public class RequiredValidationRule : ValidationRule
- {
-
-
-
-
-
-
-
-
- public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
- {
- if (value == null || String.IsNullOrWhiteSpace(value.ToString()))
- {
-
- return new ValidationResult(false, "不能为空!");
- }
- return new ValidationResult(true, null);
- }
- }
- }
|