48 references to CalendarSelectionMode
PresentationFramework (48)
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 (20)
548
if (c.SelectionMode !=
CalendarSelectionMode
.None || e.NewValue == null)
570
if (c.SelectionMode ==
CalendarSelectionMode
.SingleDate)
612
public
CalendarSelectionMode
SelectionMode
614
get { return (
CalendarSelectionMode
)GetValue(SelectionModeProperty); }
624
typeof(
CalendarSelectionMode
),
626
new FrameworkPropertyMetadata(
CalendarSelectionMode
.SingleDate, OnSelectionModeChanged),
695
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverStart;
708
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverEnd;
901
if (this.SelectionMode ==
CalendarSelectionMode
.None)
1184
CalendarSelectionMode
mode = (
CalendarSelectionMode
)value;
1186
return mode ==
CalendarSelectionMode
.SingleDate
1187
|| mode ==
CalendarSelectionMode
.SingleRange
1188
|| mode ==
CalendarSelectionMode
.MultipleRange
1189
|| mode ==
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\DatePicker.cs (1)
1075
_calendar.SelectionMode =
CalendarSelectionMode
.SingleDate;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (15)
532
(Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate || Owner.SelectionMode ==
CalendarSelectionMode
.MultipleRange))
586
case
CalendarSelectionMode
.None:
591
case
CalendarSelectionMode
.SingleDate:
605
case
CalendarSelectionMode
.SingleRange:
623
case
CalendarSelectionMode
.MultipleRange:
689
case
CalendarSelectionMode
.None:
694
case
CalendarSelectionMode
.SingleDate:
709
case
CalendarSelectionMode
.SingleRange:
728
case
CalendarSelectionMode
.MultipleRange:
782
case
CalendarSelectionMode
.SingleDate:
838
if (this.Owner.SelectionMode ==
CalendarSelectionMode
.None || this.Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate)
848
case
CalendarSelectionMode
.SingleRange:
856
case
CalendarSelectionMode
.MultipleRange:
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (7)
115
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange && this.Count > 0)
336
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange)
389
case
CalendarSelectionMode
.SingleDate:
403
case
CalendarSelectionMode
.MultipleRange:
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)