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