private static void IsEnabledChangedCallback(DependencyObject obj, DependencyPropertyChangedEventArgs e)
{
if (!GetIsEnabled(obj))
{
throw new ArgumentException("The IsEnabled attached dependency property must not be set to 'false'.");
}
// We only create an instance of the tracker. It keeps alive because it listens to the Error event.
new ValidationTracker(obj);
}