3 writes to DisplayMode
PresentationFramework (3)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
462this.OwningCalendar.DisplayMode = (CalendarMode)viewId;
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
874OwningCalendar.DisplayMode = ButtonMode;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
911this._calendar.DisplayMode = CalendarMode.Month;
38 references to DisplayMode
PresentationFramework (38)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (12)
50if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 145if (OwningCalendar.DisplayMode == CalendarMode.Month && childRow == 0) 159peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode, /*addParentInfo*/ false); 162DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.DisplayMode); 200DateTimeAutomationPeer focusedItem = GetOrCreateDateTimeAutomationPeer(focusedDate, owner.DisplayMode, /*addParentInfo*/ false); 367if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 384if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 402AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode); 420return (int)this.OwningCalendar.DisplayMode; 544currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 554currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 632if (this.OwningCalendar.DisplayMode == CalendarMode.Month)
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
115if (OwningCalendar.DisplayMode != ButtonMode) 872if (OwningCalendar.DisplayMode != ButtonMode)
src\Framework\System\Windows\Controls\Calendar.cs (18)
926switch (this.DisplayMode) 959FocusDate(this.DisplayMode == CalendarMode.Month ? this.CurrentDate : this.DisplayDate); 1001switch (this.DisplayMode) 1032DateTime? nextDate = GetDateOffset(this.DisplayDate, 1, this.DisplayMode); 1041DateTime? nextDate = GetDateOffset(this.DisplayDate, -1, this.DisplayMode); 1073switch (this.DisplayMode) 1196Debug.Assert(this.DisplayMode == CalendarMode.Year); 1209Debug.Assert(this.DisplayMode == CalendarMode.Decade); 1254if (this.DisplayMode == CalendarMode.Month) 1331switch (this.DisplayMode) 1380switch (this.DisplayMode) 1423switch (this.DisplayMode) 1445switch (this.DisplayMode) 1474switch (this.DisplayMode) 1501switch (this.DisplayMode) 1528switch (this.DisplayMode) 1556switch (this.DisplayMode) 1662switch (this.DisplayMode)
src\Framework\System\Windows\Controls\DatePicker.cs (1)
946if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.DisplayMode == CalendarMode.Month))
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (5)
109return (this.Owner != null) ? this.Owner.DisplayMode : CalendarMode.Month; 219switch (this.Owner.DisplayMode) 274this.Owner.DisplayMode == CalendarMode.Month && 924if (this.Owner.DisplayMode == CalendarMode.Month) 930Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year);