1 write to SelectionMode
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
1082
_calendar.
SelectionMode
= CalendarSelectionMode.SingleDate;
29 references to SelectionMode
PresentationFramework (29)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
456
return this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleRange || this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.MultipleRange;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
776
if (this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
816
if (EnsureSelection() && this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
920
this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.None)
System\Windows\Controls\Calendar.cs (10)
543
if (c.
SelectionMode
!= CalendarSelectionMode.None || e.NewValue == null)
565
if (c.
SelectionMode
== CalendarSelectionMode.SingleDate)
690
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverStart;
703
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverEnd;
896
if (this.
SelectionMode
== CalendarSelectionMode.None)
1573
if (this.
SelectionMode
== CalendarSelectionMode.None && lastSelectedDate != null)
1581
if (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange)
1642
if (this._isShiftPressed && (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange))
System\Windows\Controls\Primitives\CalendarItem.cs (8)
526
(Owner.
SelectionMode
== CalendarSelectionMode.SingleDate || Owner.
SelectionMode
== CalendarSelectionMode.MultipleRange))
578
switch (this.Owner.
SelectionMode
)
680
switch (this.Owner.
SelectionMode
)
773
switch (this.Owner.
SelectionMode
)
831
if (this.Owner.
SelectionMode
== CalendarSelectionMode.None || this.Owner.
SelectionMode
== CalendarSelectionMode.SingleDate)
839
switch (this.Owner.
SelectionMode
)
System\Windows\Controls\SelectedDatesCollection.cs (6)
110
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && this.Count > 0)
331
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange)
382
switch (this._owner.
SelectionMode
)
445
if (this._owner.
SelectionMode
== CalendarSelectionMode.None)
450
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleDate && this.Count > 0)
457
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)