The inputs to a selection changed event handler
Inheritance: System.Windows.RoutedEventArgs
 /// <summary>
 /// Raise the SelectionChanged event.
 /// </summary>
 private void InvokeDateSelectedChangedEvent(List<DateTime> unselected, List<DateTime> selected)
 {
     DateSelectionChangedEventArgs args = new DateSelectionChangedEventArgs(unselected, selected);
     args.Source = this;
     OnDateSelectionChanged(args);
 }
 /// <summary>
 /// Raise DateSelectionChanged event.
 /// </summary>
 protected virtual void OnDateSelectionChanged(DateSelectionChangedEventArgs e)
 {
     RaiseEvent(e);
 }
Exemple #3
0
        private void OnDateSelectionChanged(object sender, DateSelectionChangedEventArgs e)
        {
            if (IsDropDownOpen && !GetFlag(Flags.IgnoreDateSelectionChanged))
            {
                Value = MonthCalendar.SelectedDate;

                //
                if ((InputManager.Current.MostRecentInputDevice is MouseDevice)
                    && !GetFlag(Flags.IsNormalVisibleMonthChanged))
                {
                    IsDropDownOpen = false;
                }
            }

            SetFlag(Flags.IsNormalVisibleMonthChanged, false);
        }