48 references to CalendarSelectionMode
PresentationFramework (48)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
457
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 (20)
543
if (c.SelectionMode !=
CalendarSelectionMode
.None || e.NewValue == null)
565
if (c.SelectionMode ==
CalendarSelectionMode
.SingleDate)
607
public
CalendarSelectionMode
SelectionMode
609
get { return (
CalendarSelectionMode
)GetValue(SelectionModeProperty); }
619
typeof(
CalendarSelectionMode
),
621
new FrameworkPropertyMetadata(
CalendarSelectionMode
.SingleDate, OnSelectionModeChanged),
690
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverStart;
703
return this.SelectionMode ==
CalendarSelectionMode
.None ? null : _hoverEnd;
896
if (this.SelectionMode ==
CalendarSelectionMode
.None)
1179
CalendarSelectionMode
mode = (
CalendarSelectionMode
)value;
1181
return mode ==
CalendarSelectionMode
.SingleDate
1182
|| mode ==
CalendarSelectionMode
.SingleRange
1183
|| mode ==
CalendarSelectionMode
.MultipleRange
1184
|| mode ==
CalendarSelectionMode
.None;
1575
if (this.SelectionMode ==
CalendarSelectionMode
.None && lastSelectedDate != null)
1583
if (this.SelectionMode ==
CalendarSelectionMode
.SingleRange || this.SelectionMode ==
CalendarSelectionMode
.MultipleRange)
1644
if (this._isShiftPressed && (this.SelectionMode ==
CalendarSelectionMode
.SingleRange || this.SelectionMode ==
CalendarSelectionMode
.MultipleRange))
System\Windows\Controls\DatePicker.cs (1)
1082
_calendar.SelectionMode =
CalendarSelectionMode
.SingleDate;
System\Windows\Controls\Primitives\CalendarItem.cs (15)
526
(Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate || Owner.SelectionMode ==
CalendarSelectionMode
.MultipleRange))
580
case
CalendarSelectionMode
.None:
585
case
CalendarSelectionMode
.SingleDate:
599
case
CalendarSelectionMode
.SingleRange:
617
case
CalendarSelectionMode
.MultipleRange:
682
case
CalendarSelectionMode
.None:
687
case
CalendarSelectionMode
.SingleDate:
702
case
CalendarSelectionMode
.SingleRange:
721
case
CalendarSelectionMode
.MultipleRange:
775
case
CalendarSelectionMode
.SingleDate:
831
if (this.Owner.SelectionMode ==
CalendarSelectionMode
.None || this.Owner.SelectionMode ==
CalendarSelectionMode
.SingleDate)
841
case
CalendarSelectionMode
.SingleRange:
849
case
CalendarSelectionMode
.MultipleRange:
System\Windows\Controls\SelectedDatesCollection.cs (7)
110
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange && this.Count > 0)
331
if (this._owner.SelectionMode ==
CalendarSelectionMode
.SingleRange)
384
case
CalendarSelectionMode
.SingleDate:
398
case
CalendarSelectionMode
.MultipleRange:
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)