I try make a validation fiels but don't work it. SomeOne have a example how i make it? Sorry for my bad English
*My validation class
using System.Globalization; using System.Windows.Controls;
namespace App.Clases { public class NotEmptyValidationRule: ValidationRule { public override ValidationResult Validate(object value, CultureInfo cultureInfo) { return string.IsNullOrWhiteSpace((value ?? "").ToString()) ? new ValidationResult(false, "Required Field.") : ValidationResult.ValidResult; //throw new System.NotImplementedException(); } } }