1 write to SelectionMode
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
1086
_calendar.
SelectionMode
= CalendarSelectionMode.SingleDate;
29 references to SelectionMode
PresentationFramework (29)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
463
return this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleRange || this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.MultipleRange;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
783
if (this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
823
if (EnsureSelection() && this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
927
this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.None)
System\Windows\Controls\Calendar.cs (10)
547
if (c.
SelectionMode
!= CalendarSelectionMode.None || e.NewValue == null)
569
if (c.
SelectionMode
== CalendarSelectionMode.SingleDate)
694
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverStart;
707
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverEnd;
900
if (this.
SelectionMode
== CalendarSelectionMode.None)
1579
if (this.
SelectionMode
== CalendarSelectionMode.None && lastSelectedDate != null)
1587
if (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange)
1648
if (this._isShiftPressed && (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange))
System\Windows\Controls\Primitives\CalendarItem.cs (8)
531
(Owner.
SelectionMode
== CalendarSelectionMode.SingleDate || Owner.
SelectionMode
== CalendarSelectionMode.MultipleRange))
583
switch (this.Owner.
SelectionMode
)
685
switch (this.Owner.
SelectionMode
)
778
switch (this.Owner.
SelectionMode
)
836
if (this.Owner.
SelectionMode
== CalendarSelectionMode.None || this.Owner.
SelectionMode
== CalendarSelectionMode.SingleDate)
844
switch (this.Owner.
SelectionMode
)
System\Windows\Controls\SelectedDatesCollection.cs (6)
114
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && this.Count > 0)
335
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange)
386
switch (this._owner.
SelectionMode
)
449
if (this._owner.
SelectionMode
== CalendarSelectionMode.None)
454
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleDate && this.Count > 0)
461
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)