3 writes to DisplayMode
PresentationFramework (3)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
445
this.OwningCalendar.
DisplayMode
= (CalendarMode)viewId;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
891
OwningCalendar.
DisplayMode
= ButtonMode;
System\Windows\Controls\DatePicker.cs (1)
918
this._calendar.
DisplayMode
= CalendarMode.Month;
38 references to DisplayMode
PresentationFramework (38)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (12)
43
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
138
if (OwningCalendar.
DisplayMode
== CalendarMode.Month && childRow == 0)
152
peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.
DisplayMode
, /*addParentInfo*/ false);
155
DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.
DisplayMode
);
193
DateTimeAutomationPeer focusedItem = GetOrCreateDateTimeAutomationPeer(focusedDate, owner.
DisplayMode
, /*addParentInfo*/ false);
353
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
370
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
387
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.
DisplayMode
);
405
return (int)this.OwningCalendar.
DisplayMode
;
527
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
537
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
615
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
100
if (OwningCalendar.
DisplayMode
!= ButtonMode)
889
if (OwningCalendar.
DisplayMode
!= ButtonMode)
System\Windows\Controls\Calendar.cs (18)
919
switch (this.
DisplayMode
)
952
FocusDate(this.
DisplayMode
== CalendarMode.Month ? this.CurrentDate : this.DisplayDate);
994
switch (this.
DisplayMode
)
1025
DateTime? nextDate = GetDateOffset(this.DisplayDate, 1, this.
DisplayMode
);
1034
DateTime? nextDate = GetDateOffset(this.DisplayDate, -1, this.
DisplayMode
);
1066
switch (this.
DisplayMode
)
1189
Debug.Assert(this.
DisplayMode
== CalendarMode.Year);
1202
Debug.Assert(this.
DisplayMode
== CalendarMode.Decade);
1247
if (this.
DisplayMode
== CalendarMode.Month)
1324
switch (this.
DisplayMode
)
1373
switch (this.
DisplayMode
)
1413
switch (this.
DisplayMode
)
1435
switch (this.
DisplayMode
)
1464
switch (this.
DisplayMode
)
1491
switch (this.
DisplayMode
)
1518
switch (this.
DisplayMode
)
1546
switch (this.
DisplayMode
)
1652
switch (this.
DisplayMode
)
System\Windows\Controls\DatePicker.cs (1)
953
if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.
DisplayMode
== CalendarMode.Month))
System\Windows\Controls\Primitives\CalendarItem.cs (5)
103
return (this.Owner != null) ? this.Owner.
DisplayMode
: CalendarMode.Month;
213
switch (this.Owner.
DisplayMode
)
268
this.Owner.
DisplayMode
== CalendarMode.Month &&
917
if (this.Owner.
DisplayMode
== CalendarMode.Month)
923
Debug.Assert(this.Owner.
DisplayMode
== CalendarMode.Year);