42 references to SelectedDates
PresentationFramework (42)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
305
int numSelected = OwningCalendar.
SelectedDates
.Count;
489
foreach (DateTime date in OwningCalendar.
SelectedDates
)
596
if (!OwningCalendar.
SelectedDates
.MaximumDate.HasValue || OwningCalendar.
SelectedDates
.MaximumDate <= startDate)
601
if (OwningCalendar.
SelectedDates
.MinimumDate.HasValue && startDate < OwningCalendar.
SelectedDates
.MinimumDate)
603
return OwningCalendar.
SelectedDates
.MinimumDate;
609
if (OwningCalendar.
SelectedDates
.Contains(startDate) == isSelected)
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
728
return this.OwningCalendar.
SelectedDates
.Contains(Date);
765
this.OwningCalendar.
SelectedDates
.Add(Date);
785
this.OwningCalendar.
SelectedDates
.Remove(Date);
src\Framework\System\Windows\Controls\Calendar.cs (14)
289
DateTime? maxSelectedDate = c.
SelectedDates
.MaximumDate;
346
DateTime? minSelectedDate = c.
SelectedDates
.MinimumDate;
558
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
562
if (addedDate.HasValue && !(c.
SelectedDates
.Count > 0 && c.
SelectedDates
[0] == addedDate.Value))
564
c.
SelectedDates
.ClearInternal();
565
c.
SelectedDates
.Add(addedDate.Value);
635
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
1116
this.
SelectedDates
.ClearInternal();
1119
this.
SelectedDates
.AddRange(this.HoverStart.Value, this.CurrentDate);
1593
this.
SelectedDates
.ClearInternal();
1634
if (this.
SelectedDates
.Count > 0)
1636
this.
SelectedDates
[0] = lastSelectedDate.Value;
1640
this.
SelectedDates
.Add(lastSelectedDate.Value);
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
330
foreach (object child in _owner.
SelectedDates
)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (16)
535
this.Owner.
SelectedDates
.Toggle(selectedDate);
541
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate);
599
this.Owner.
SelectedDates
.Toggle(clickedDate);
608
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
611
this.Owner.
SelectedDates
.AddRangeInternal(lastDate.Value, clickedDate);
627
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
632
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.CurrentDate, clickedDate);
642
this.Owner.
SelectedDates
.Toggle(clickedDate);
703
this.Owner.
SelectedDates
.Toggle(selectedDate);
711
this.Owner.
SelectedDates
.ClearInternal();
732
this.Owner.
SelectedDates
.ClearInternal();
786
if (this.Owner.
SelectedDates
.Count == 0)
788
this.Owner.
SelectedDates
.Add(selectedDate);
792
this.Owner.
SelectedDates
[0] = selectedDate;
851
this.Owner.
SelectedDates
.ClearInternal();
1124
foreach (DateTime item in this.Owner.
SelectedDates
)