using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace XGLFinishPro.Tools { public class ValidationHelper { public static readonly DependencyProperty ErrorProperty = DependencyProperty.RegisterAttached("Error", typeof(string), typeof(ValidationHelper), new PropertyMetadata(null)); public static string GetError(DependencyObject obj) { return (string)obj.GetValue(ErrorProperty); } public static void SetError(DependencyObject obj, string value) { obj.SetValue(ErrorProperty, value); } } }