System.Waf.Presentation.ValidationHelper.IsEnabledChangedCallback C# (CSharp) Метод

IsEnabledChangedCallback() приватный статический Метод

private static IsEnabledChangedCallback ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
obj System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Результат void
        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);
        }