#pragma warning restore SA1202 // Elements must be ordered by access

        private static void OnTrackChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            d.SetValue(EventsPropertyKey, new ObservableCollection <object>());
            BindingHelper.Bind(d, HasErrorProperty)
            .OneWayTo(d, Scope.HasErrorProperty);
            BindingHelper.Bind(d, ErrorsProperty)
            .OneWayTo(d, Scope.ErrorsProperty);
            Scope.AddErrorHandler(d, (o, args) => GetEvents((DependencyObject)o).Add(args));
        }
Beispiel #2
0
 public void Dispose()
 {
     Scope.AddErrorHandler(this.source, this.Add);
 }
Beispiel #3
0
 public EventList(FrameworkElement source)
 {
     this.source = source;
     Scope.AddErrorHandler(source, this.Add);
 }