3 writes to DisplayMode
PresentationFramework (3)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
434
this.OwningCalendar.
DisplayMode
= (CalendarMode)viewId;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
890
OwningCalendar.
DisplayMode
= ButtonMode;
System\Windows\Controls\DatePicker.cs (1)
914
this._calendar.
DisplayMode
= CalendarMode.Month;
38 references to DisplayMode
PresentationFramework (38)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (12)
42
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
137
if (OwningCalendar.
DisplayMode
== CalendarMode.Month && childRow == 0)
151
peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.
DisplayMode
, /*addParentInfo*/ false);
154
DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.
DisplayMode
);
192
DateTimeAutomationPeer focusedItem = GetOrCreateDateTimeAutomationPeer(focusedDate, owner.
DisplayMode
, /*addParentInfo*/ false);
342
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
359
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
376
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.
DisplayMode
);
394
return (int)this.OwningCalendar.
DisplayMode
;
516
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
526
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
604
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
99
if (OwningCalendar.
DisplayMode
!= ButtonMode)
888
if (OwningCalendar.
DisplayMode
!= ButtonMode)
System\Windows\Controls\Calendar.cs (18)
918
switch (this.
DisplayMode
)
951
FocusDate(this.
DisplayMode
== CalendarMode.Month ? this.CurrentDate : this.DisplayDate);
993
switch (this.
DisplayMode
)
1024
DateTime? nextDate = GetDateOffset(this.DisplayDate, 1, this.
DisplayMode
);
1033
DateTime? nextDate = GetDateOffset(this.DisplayDate, -1, this.
DisplayMode
);
1062
switch (this.
DisplayMode
)
1185
Debug.Assert(this.
DisplayMode
== CalendarMode.Year);
1198
Debug.Assert(this.
DisplayMode
== CalendarMode.Decade);
1240
if (this.
DisplayMode
== CalendarMode.Month)
1317
switch (this.
DisplayMode
)
1366
switch (this.
DisplayMode
)
1406
switch (this.
DisplayMode
)
1428
switch (this.
DisplayMode
)
1457
switch (this.
DisplayMode
)
1484
switch (this.
DisplayMode
)
1511
switch (this.
DisplayMode
)
1539
switch (this.
DisplayMode
)
1645
switch (this.
DisplayMode
)
System\Windows\Controls\DatePicker.cs (1)
949
if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.
DisplayMode
== CalendarMode.Month))
System\Windows\Controls\Primitives\CalendarItem.cs (5)
102
return (this.Owner != null) ? this.Owner.
DisplayMode
: CalendarMode.Month;
212
switch (this.Owner.
DisplayMode
)
267
this.Owner.
DisplayMode
== CalendarMode.Month &&
913
if (this.Owner.
DisplayMode
== CalendarMode.Month)
919
Debug.Assert(this.Owner.
DisplayMode
== CalendarMode.Year);