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