3 writes to DisplayMode
PresentationFramework (3)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
452this.OwningCalendar.DisplayMode = (CalendarMode)viewId;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
898OwningCalendar.DisplayMode = ButtonMode;
System\Windows\Controls\DatePicker.cs (1)
922this._calendar.DisplayMode = CalendarMode.Month;
38 references to DisplayMode
PresentationFramework (38)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (12)
49if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 144if (OwningCalendar.DisplayMode == CalendarMode.Month && childRow == 0) 158peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode, /*addParentInfo*/ false); 161DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.DisplayMode); 199DateTimeAutomationPeer focusedItem = GetOrCreateDateTimeAutomationPeer(focusedDate, owner.DisplayMode, /*addParentInfo*/ false); 359if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 376if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 394AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode); 412return (int)this.OwningCalendar.DisplayMode; 534currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 544currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 622if (this.OwningCalendar.DisplayMode == CalendarMode.Month)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
107if (OwningCalendar.DisplayMode != ButtonMode) 896if (OwningCalendar.DisplayMode != ButtonMode)
System\Windows\Controls\Calendar.cs (18)
925switch (this.DisplayMode) 958FocusDate(this.DisplayMode == CalendarMode.Month ? this.CurrentDate : this.DisplayDate); 1000switch (this.DisplayMode) 1031DateTime? nextDate = GetDateOffset(this.DisplayDate, 1, this.DisplayMode); 1040DateTime? nextDate = GetDateOffset(this.DisplayDate, -1, this.DisplayMode); 1072switch (this.DisplayMode) 1195Debug.Assert(this.DisplayMode == CalendarMode.Year); 1208Debug.Assert(this.DisplayMode == CalendarMode.Decade); 1253if (this.DisplayMode == CalendarMode.Month) 1330switch (this.DisplayMode) 1379switch (this.DisplayMode) 1419switch (this.DisplayMode) 1441switch (this.DisplayMode) 1470switch (this.DisplayMode) 1497switch (this.DisplayMode) 1524switch (this.DisplayMode) 1552switch (this.DisplayMode) 1658switch (this.DisplayMode)
System\Windows\Controls\DatePicker.cs (1)
957if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.DisplayMode == CalendarMode.Month))
System\Windows\Controls\Primitives\CalendarItem.cs (5)
108return (this.Owner != null) ? this.Owner.DisplayMode : CalendarMode.Month; 218switch (this.Owner.DisplayMode) 273this.Owner.DisplayMode == CalendarMode.Month && 922if (this.Owner.DisplayMode == CalendarMode.Month) 928Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year);