Exemplo n.º 1
0
#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));
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     Scope.AddErrorHandler(this.source, this.Add);
 }
Exemplo n.º 3
0
 public EventList(FrameworkElement source)
 {
     this.source = source;
     Scope.AddErrorHandler(source, this.Add);
 }