Пример #1
0
        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);
        }
Пример #2
0
        private static void OnViewDurationPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            EventsView s = (EventsView)sender;

            s.UpdateAllSizeAndPositions();
        }