3 writes to DisplayDate
PresentationFramework (3)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
895
OwningCalendar.
DisplayDate
= this.Date;
System\Windows\Controls\Calendar.cs (1)
950
this.
DisplayDate
= newDate.Value;
System\Windows\Controls\DatePicker.cs (1)
170
dp._calendar.
DisplayDate
= (DateTime)value;
39 references to DisplayDate
PresentationFramework (39)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
190
focusedDate = owner.
DisplayDate
;
561
DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.
DisplayDate
;
575
DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.
DisplayDate
;
System\Windows\Controls\Calendar.cs (33)
396
c.CurrentDate = c.
DisplayDate
;
721
return DateTimeHelper.DiscardDayTime(
DisplayDate
);
729
return new DateTime(
DisplayDate
.Year, 1, 1);
761
this.CurrentDate = this.
DisplayDate
;
931
newDate = DateTimeHelper.SetYearMonth(this.
DisplayDate
, d);
938
newDate = DateTimeHelper.SetYear(this.
DisplayDate
, d.Year);
954
FocusDate(this.DisplayMode == CalendarMode.Month ? this.CurrentDate : this.
DisplayDate
);
979
result = DateTimeHelper.AddYears(this.
DisplayDate
, offset * YEARS_PER_DECADE);
1027
DateTime? nextDate = GetDateOffset(this.
DisplayDate
, 1, this.DisplayMode);
1036
DateTime? nextDate = GetDateOffset(this.
DisplayDate
, -1, this.DisplayMode);
1240
c.FocusDate(c.
DisplayDate
);
1344
FocusDate(this.
DisplayDate
);
1348
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, YEAR_COLS);
1360
FocusDate(this.
DisplayDate
);
1364
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, YEAR_COLS);
1399
DateTime selectedMonth = new DateTime(this.
DisplayDate
.Year, 12, 1);
1406
DateTime? selectedYear = new DateTime(DateTimeHelper.EndOfDecade(this.
DisplayDate
), 1, 1);
1420
FocusDate(this.
DisplayDate
);
1427
FocusDate(this.
DisplayDate
);
1449
DateTime selectedMonth = new DateTime(this.
DisplayDate
.Year, 1, 1);
1456
DateTime? selectedYear = new DateTime(DateTimeHelper.DecadeOfDate(this.
DisplayDate
), 1, 1);
1477
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, moveAmmount);
1484
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, moveAmmount);
1504
DateTime? selectedMonth = DateTimeHelper.AddYears(this.
DisplayDate
, 1);
1511
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, 10 );
1531
DateTime? selectedMonth = DateTimeHelper.AddYears(this.
DisplayDate
, -1);
1538
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, -10);
1559
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, moveAmmount);
1566
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, moveAmmount);
1661
FocusDate(this.
DisplayDate
);
1677
FocusDate(this.
DisplayDate
);
1681
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, -YEAR_COLS);
1692
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, -YEAR_COLS);
System\Windows\Controls\DatePicker.cs (1)
171
return dp._calendar.
DisplayDate
;
System\Windows\Controls\Primitives\CalendarItem.cs (2)
135
return (Owner != null) ? Owner.
DisplayDate
: DateTime.Today;
1256
childButton.HasSelectedDays = (Owner.
DisplayDate
.Year == year);