3 writes to DisplayMode
PresentationFramework (3)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
435
this.OwningCalendar.
DisplayMode
= (CalendarMode)viewId;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
891
OwningCalendar.
DisplayMode
= ButtonMode;
System\Windows\Controls\DatePicker.cs (1)
915
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);
343
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
360
if (this.OwningCalendar.
DisplayMode
== CalendarMode.Month)
377
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.
DisplayMode
);
395
return (int)this.OwningCalendar.
DisplayMode
;
517
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
527
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.
DisplayMode
;
605
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
);
1063
switch (this.
DisplayMode
)
1186
Debug.Assert(this.
DisplayMode
== CalendarMode.Year);
1199
Debug.Assert(this.
DisplayMode
== CalendarMode.Decade);
1241
if (this.
DisplayMode
== CalendarMode.Month)
1318
switch (this.
DisplayMode
)
1367
switch (this.
DisplayMode
)
1407
switch (this.
DisplayMode
)
1429
switch (this.
DisplayMode
)
1458
switch (this.
DisplayMode
)
1485
switch (this.
DisplayMode
)
1512
switch (this.
DisplayMode
)
1540
switch (this.
DisplayMode
)
1646
switch (this.
DisplayMode
)
System\Windows\Controls\DatePicker.cs (1)
950
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 &&
914
if (this.Owner.
DisplayMode
== CalendarMode.Month)
920
Debug.Assert(this.Owner.
DisplayMode
== CalendarMode.Year);