You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
689 B
C#

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);
}
}
}