3 writes to DisplayDate
PresentationFramework (3)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
902OwningCalendar.DisplayDate = this.Date;
System\Windows\Controls\Calendar.cs (1)
954this.DisplayDate = newDate.Value;
System\Windows\Controls\DatePicker.cs (1)
174dp._calendar.DisplayDate = (DateTime)value;
39 references to DisplayDate
PresentationFramework (39)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
196focusedDate = owner.DisplayDate; 567DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate; 581DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate;
System\Windows\Controls\Calendar.cs (33)
400c.CurrentDate = c.DisplayDate; 725return DateTimeHelper.DiscardDayTime(DisplayDate); 733return new DateTime(DisplayDate.Year, 1, 1); 765this.CurrentDate = this.DisplayDate; 935newDate = DateTimeHelper.SetYearMonth(this.DisplayDate, d); 942newDate = DateTimeHelper.SetYear(this.DisplayDate, d.Year); 958FocusDate(this.DisplayMode == CalendarMode.Month ? this.CurrentDate : this.DisplayDate); 983result = DateTimeHelper.AddYears(this.DisplayDate, offset * YEARS_PER_DECADE); 1031DateTime? nextDate = GetDateOffset(this.DisplayDate, 1, this.DisplayMode); 1040DateTime? nextDate = GetDateOffset(this.DisplayDate, -1, this.DisplayMode); 1244c.FocusDate(c.DisplayDate); 1348FocusDate(this.DisplayDate); 1352DateTime? selectedMonth = DateTimeHelper.AddMonths(this.DisplayDate, YEAR_COLS); 1364FocusDate(this.DisplayDate); 1368DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, YEAR_COLS); 1403DateTime selectedMonth = new DateTime(this.DisplayDate.Year, 12, 1); 1410DateTime? selectedYear = new DateTime(DateTimeHelper.EndOfDecade(this.DisplayDate), 1, 1); 1424FocusDate(this.DisplayDate); 1431FocusDate(this.DisplayDate); 1453DateTime selectedMonth = new DateTime(this.DisplayDate.Year, 1, 1); 1460DateTime? selectedYear = new DateTime(DateTimeHelper.DecadeOfDate(this.DisplayDate), 1, 1); 1481DateTime? selectedMonth = DateTimeHelper.AddMonths(this.DisplayDate, moveAmmount); 1488DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, moveAmmount); 1508DateTime? selectedMonth = DateTimeHelper.AddYears(this.DisplayDate, 1); 1515DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, 10 ); 1535DateTime? selectedMonth = DateTimeHelper.AddYears(this.DisplayDate, -1); 1542DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, -10); 1563DateTime? selectedMonth = DateTimeHelper.AddMonths(this.DisplayDate, moveAmmount); 1570DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, moveAmmount); 1665FocusDate(this.DisplayDate); 1681FocusDate(this.DisplayDate); 1685DateTime? selectedMonth = DateTimeHelper.AddMonths(this.DisplayDate, -YEAR_COLS); 1696DateTime? selectedYear = DateTimeHelper.AddYears(this.DisplayDate, -YEAR_COLS);
System\Windows\Controls\DatePicker.cs (1)
175return dp._calendar.DisplayDate;
System\Windows\Controls\Primitives\CalendarItem.cs (2)
140return (Owner != null) ? Owner.DisplayDate : DateTime.Today; 1261childButton.HasSelectedDays = (Owner.DisplayDate.Year == year);