1 write to SelectionMode
PresentationFramework (1)
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1075
_calendar.
SelectionMode
= CalendarSelectionMode.SingleDate;
29 references to SelectionMode
PresentationFramework (29)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
473
return this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleRange || this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.MultipleRange;
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
759
if (this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
799
if (EnsureSelection() && this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.SingleDate)
903
this.OwningCalendar.
SelectionMode
== CalendarSelectionMode.None)
src\Framework\System\Windows\Controls\Calendar.cs (10)
548
if (c.
SelectionMode
!= CalendarSelectionMode.None || e.NewValue == null)
570
if (c.
SelectionMode
== CalendarSelectionMode.SingleDate)
695
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverStart;
708
return this.
SelectionMode
== CalendarSelectionMode.None ? null : _hoverEnd;
901
if (this.
SelectionMode
== CalendarSelectionMode.None)
1583
if (this.
SelectionMode
== CalendarSelectionMode.None && lastSelectedDate != null)
1591
if (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange)
1652
if (this._isShiftPressed && (this.
SelectionMode
== CalendarSelectionMode.SingleRange || this.
SelectionMode
== CalendarSelectionMode.MultipleRange))
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (8)
532
(Owner.
SelectionMode
== CalendarSelectionMode.SingleDate || Owner.
SelectionMode
== CalendarSelectionMode.MultipleRange))
584
switch (this.Owner.
SelectionMode
)
687
switch (this.Owner.
SelectionMode
)
780
switch (this.Owner.
SelectionMode
)
838
if (this.Owner.
SelectionMode
== CalendarSelectionMode.None || this.Owner.
SelectionMode
== CalendarSelectionMode.SingleDate)
846
switch (this.Owner.
SelectionMode
)
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (6)
115
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && this.Count > 0)
336
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange)
387
switch (this._owner.
SelectionMode
)
450
if (this._owner.
SelectionMode
== CalendarSelectionMode.None)
455
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleDate && this.Count > 0)
462
if (this._owner.
SelectionMode
== CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)