1 write to _calendar
PresentationFramework (1)
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1067
_calendar
= new Calendar();
32 references to _calendar
PresentationFramework (32)
src\Framework\System\Windows\Controls\DatePicker.cs (32)
120
get { return
_calendar
.BlackoutDates; }
174
dp.
_calendar
.DisplayDate = (DateTime)value;
175
return dp.
_calendar
.DisplayDate;
220
dp.
_calendar
.DisplayDateEnd = (DateTime?)value;
221
return dp.
_calendar
.DisplayDateEnd;
267
dp.
_calendar
.DisplayDateStart = (DateTime?)value;
268
return dp.
_calendar
.DisplayDateStart;
357
dp.
_calendar
.Focus();
448
if ((day.Month != dp.DisplayDate.Month || day.Year != dp.DisplayDate.Year) && !dp.
_calendar
.DatePickerDisplayDateFlag)
453
dp.
_calendar
.DatePickerDisplayDateFlag = false;
487
dp.
_calendar
.SelectedDate = (DateTime?)value;
488
return dp.
_calendar
.SelectedDate;
625
return
_calendar
;
679
_popUp.Child = this.
_calendar
;
909
if (this.
_calendar
!= null)
911
this.
_calendar
.DisplayMode = CalendarMode.Month;
912
this.
_calendar
.MoveFocus(new TraversalRequest(FocusNavigationDirection.First));
925
if (
_calendar
.IsKeyboardFocusWithin)
1068
_calendar
.DayButtonMouseUp += new MouseButtonEventHandler(Calendar_DayButtonMouseUp);
1069
_calendar
.DisplayDateChanged += new EventHandler<CalendarDateChangedEventArgs>(Calendar_DisplayDateChanged);
1070
_calendar
.SelectedDatesChanged += new EventHandler<SelectionChangedEventArgs>(Calendar_SelectedDatesChanged);
1071
_calendar
.DayOrMonthPreviewKeyDown += new RoutedEventHandler(CalendarDayOrMonthButton_PreviewKeyDown);
1072
_calendar
.HorizontalAlignment = HorizontalAlignment.Left;
1073
_calendar
.VerticalAlignment = VerticalAlignment.Top;
1075
_calendar
.SelectionMode = CalendarSelectionMode.SingleDate;
1076
_calendar
.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty));
1077
_calendar
.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
1078
_calendar
.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty));
1079
_calendar
.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty));
1080
_calendar
.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
1082
RenderOptions.SetClearTypeHint(
_calendar
, ClearTypeHint.Enabled);
1115
if (Calendar.IsValidDateSelection(this.
_calendar
, newSelectedDate))