1 write to _calendar
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
1074
_calendar
= new Calendar();
32 references to _calendar
PresentationFramework (32)
System\Windows\Controls\DatePicker.cs (32)
116
get { return
_calendar
.BlackoutDates; }
170
dp.
_calendar
.DisplayDate = (DateTime)value;
171
return dp.
_calendar
.DisplayDate;
216
dp.
_calendar
.DisplayDateEnd = (DateTime?)value;
217
return dp.
_calendar
.DisplayDateEnd;
263
dp.
_calendar
.DisplayDateStart = (DateTime?)value;
264
return dp.
_calendar
.DisplayDateStart;
353
dp.
_calendar
.Focus();
455
if ((day.Month != dp.DisplayDate.Month || day.Year != dp.DisplayDate.Year) && !dp.
_calendar
.DatePickerDisplayDateFlag)
460
dp.
_calendar
.DatePickerDisplayDateFlag = false;
494
dp.
_calendar
.SelectedDate = (DateTime?)value;
495
return dp.
_calendar
.SelectedDate;
632
return
_calendar
;
686
_popUp.Child = this.
_calendar
;
916
if (this.
_calendar
!= null)
918
this.
_calendar
.DisplayMode = CalendarMode.Month;
919
this.
_calendar
.MoveFocus(new TraversalRequest(FocusNavigationDirection.First));
932
if (
_calendar
.IsKeyboardFocusWithin)
1075
_calendar
.DayButtonMouseUp += new MouseButtonEventHandler(Calendar_DayButtonMouseUp);
1076
_calendar
.DisplayDateChanged += new EventHandler<CalendarDateChangedEventArgs>(Calendar_DisplayDateChanged);
1077
_calendar
.SelectedDatesChanged += new EventHandler<SelectionChangedEventArgs>(Calendar_SelectedDatesChanged);
1078
_calendar
.DayOrMonthPreviewKeyDown += new RoutedEventHandler(CalendarDayOrMonthButton_PreviewKeyDown);
1079
_calendar
.HorizontalAlignment = HorizontalAlignment.Left;
1080
_calendar
.VerticalAlignment = VerticalAlignment.Top;
1082
_calendar
.SelectionMode = CalendarSelectionMode.SingleDate;
1083
_calendar
.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty));
1084
_calendar
.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
1085
_calendar
.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty));
1086
_calendar
.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty));
1087
_calendar
.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
1089
RenderOptions.SetClearTypeHint(
_calendar
, ClearTypeHint.Enabled);
1122
if (Calendar.IsValidDateSelection(this.
_calendar
, newSelectedDate))