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