private static void OnEventDaysPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { EventsView s = (EventsView)sender; IReadOnlyObservableCollection <EventDay> oldValue = (IReadOnlyObservableCollection <EventDay>)e.OldValue; IReadOnlyObservableCollection <EventDay> newValue = (IReadOnlyObservableCollection <EventDay>)e.NewValue; s.Unsubscribe(oldValue); s.Subscrube(newValue); s.UpdateViewEvents(newValue); }
private static void OnViewDurationPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { EventsView s = (EventsView)sender; s.UpdateAllSizeAndPositions(); }