This question is locked. New answers and comments are not allowed.
Hello People,
Somebody that can helpe to convert this code to vb.
Thanks a lot in advanced,
Fausto
Somebody that can helpe to convert this code to vb.
public static readonly DependencyProperty ErrorsProperty =
DependencyProperty.RegisterAttached("Errors", typeof(IList<ValidationError>), typeof(ValidationScope), new PropertyMetadata(null, ErrorsChanged));
public static void ErrorsChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
{
FrameworkElement element = (FrameworkElement)obj;
element.BindingValidationError +=
delegate(object sender, ValidationErrorEventArgs e)
{
if (e.Action == ValidationErrorEventAction.Added)
{
GetErrors(obj).Add(e.Error);
}
else
{
GetErrors(obj).Remove(e.Error);
}
};
}
Thanks a lot in advanced,
Fausto