using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace WpfApplication1
{
    class RequiredFiedValidationRule:ValidationRule    
    {    
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)    
        {    
            if (value.ToString().Length > 0)    
            {    
                return new ValidationResult(true, null);    
            }    
            else    
            {    
                return new ValidationResult(false, "Required Field Validation");    
            }    
        }    
    }    
    }

