Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
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);
        }
Esempio n. 3
0
 /// <summary>
 /// Raise DateSelectionChanged event.
 /// </summary>
 protected virtual void OnDateSelectionChanged(DateSelectionChangedEventArgs e)
 {
     RaiseEvent(e);
 }