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