3 writes to DisplayDate
PresentationFramework (3)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
895
OwningCalendar.
DisplayDate
= this.Date;
System\Windows\Controls\Calendar.cs (1)
948
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
;
560
DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.
DisplayDate
;
574
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
;
929
newDate = DateTimeHelper.SetYearMonth(this.
DisplayDate
, d);
936
newDate = DateTimeHelper.SetYear(this.
DisplayDate
, d.Year);
952
FocusDate(this.DisplayMode == CalendarMode.Month ? this.CurrentDate : this.
DisplayDate
);
977
result = DateTimeHelper.AddYears(this.
DisplayDate
, offset * YEARS_PER_DECADE);
1025
DateTime? nextDate = GetDateOffset(this.
DisplayDate
, 1, this.DisplayMode);
1034
DateTime? nextDate = GetDateOffset(this.
DisplayDate
, -1, this.DisplayMode);
1238
c.FocusDate(c.
DisplayDate
);
1342
FocusDate(this.
DisplayDate
);
1346
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, YEAR_COLS);
1358
FocusDate(this.
DisplayDate
);
1362
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, YEAR_COLS);
1397
DateTime selectedMonth = new DateTime(this.
DisplayDate
.Year, 12, 1);
1404
DateTime? selectedYear = new DateTime(DateTimeHelper.EndOfDecade(this.
DisplayDate
), 1, 1);
1418
FocusDate(this.
DisplayDate
);
1425
FocusDate(this.
DisplayDate
);
1447
DateTime selectedMonth = new DateTime(this.
DisplayDate
.Year, 1, 1);
1454
DateTime? selectedYear = new DateTime(DateTimeHelper.DecadeOfDate(this.
DisplayDate
), 1, 1);
1475
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, moveAmmount);
1482
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, moveAmmount);
1502
DateTime? selectedMonth = DateTimeHelper.AddYears(this.
DisplayDate
, 1);
1509
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, 10 );
1529
DateTime? selectedMonth = DateTimeHelper.AddYears(this.
DisplayDate
, -1);
1536
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, -10);
1557
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, moveAmmount);
1564
DateTime? selectedYear = DateTimeHelper.AddYears(this.
DisplayDate
, moveAmmount);
1659
FocusDate(this.
DisplayDate
);
1675
FocusDate(this.
DisplayDate
);
1679
DateTime? selectedMonth = DateTimeHelper.AddMonths(this.
DisplayDate
, -YEAR_COLS);
1690
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;
1257
childButton.HasSelectedDays = (Owner.
DisplayDate
.Year == year);