48 references to CalendarSelectionMode
PresentationFramework (48)
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 (20)
547
if (c.SelectionMode !=
CalendarSelectionMode
.None || e.NewValue == null)
569
if (c.SelectionMode ==
CalendarSelectionMode
.SingleDate)
611
public
CalendarSelectionMode
SelectionMode
613
get { return (
CalendarSelectionMode
)GetValue(SelectionModeProperty); }
623
typeof(
CalendarSelectionMode
),
625
new FrameworkPropertyMetadata(
CalendarSelectionMode
.SingleDate, OnSelectionModeChanged),
694
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverStart;
707
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverEnd;
900
if (this.SelectionMode ==
CalendarSelectionMode
.None)
1183
CalendarSelectionMode
mode = (
CalendarSelectionMode
)value;
1185
return mode ==
CalendarSelectionMode
.SingleDate
1186
|| mode ==
CalendarSelectionMode
.SingleRange
1187
|| mode ==
CalendarSelectionMode
.MultipleRange
1188
|| mode ==
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\DatePicker.cs (1)
1086
_calendar.SelectionMode =
CalendarSelectionMode
.SingleDate;
System\Windows\Controls\Primitives\CalendarItem.cs (15)
531
(Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate || Owner.SelectionMode ==
CalendarSelectionMode
.MultipleRange))
585
case
CalendarSelectionMode
.None:
590
case
CalendarSelectionMode
.SingleDate:
604
case
CalendarSelectionMode
.SingleRange:
622
case
CalendarSelectionMode
.MultipleRange:
687
case
CalendarSelectionMode
.None:
692
case
CalendarSelectionMode
.SingleDate:
707
case
CalendarSelectionMode
.SingleRange:
726
case
CalendarSelectionMode
.MultipleRange:
780
case
CalendarSelectionMode
.SingleDate:
836
if (this.Owner.SelectionMode ==
CalendarSelectionMode
.None || this.Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate)
846
case
CalendarSelectionMode
.SingleRange:
854
case
CalendarSelectionMode
.MultipleRange:
System\Windows\Controls\SelectedDatesCollection.cs (7)
114
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange && this.Count > 0)
335
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange)
388
case
CalendarSelectionMode
.SingleDate:
402
case
CalendarSelectionMode
.MultipleRange:
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)