42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
297
int numSelected = OwningCalendar.
SelectedDates
.Count;
479
foreach (DateTime date in OwningCalendar.
SelectedDates
)
586
if (!OwningCalendar.
SelectedDates
.MaximumDate.HasValue || OwningCalendar.
SelectedDates
.MaximumDate <= startDate)
591
if (OwningCalendar.
SelectedDates
.MinimumDate.HasValue && startDate < OwningCalendar.
SelectedDates
.MinimumDate)
593
return OwningCalendar.
SelectedDates
.MinimumDate;
599
if (OwningCalendar.
SelectedDates
.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
752
return this.OwningCalendar.
SelectedDates
.Contains(Date);
789
this.OwningCalendar.
SelectedDates
.Add(Date);
809
this.OwningCalendar.
SelectedDates
.Remove(Date);
System\Windows\Controls\Calendar.cs (14)
288
DateTime? maxSelectedDate = c.
SelectedDates
.MaximumDate;
345
DateTime? minSelectedDate = c.
SelectedDates
.MinimumDate;
557
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
561
if (addedDate.HasValue && !(c.
SelectedDates
.Count > 0 && c.
SelectedDates
[0] == addedDate.Value))
563
c.
SelectedDates
.ClearInternal();
564
c.
SelectedDates
.Add(addedDate.Value);
634
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
1115
this.
SelectedDates
.ClearInternal();
1118
this.
SelectedDates
.AddRange(this.HoverStart.Value, this.CurrentDate);
1589
this.
SelectedDates
.ClearInternal();
1630
if (this.
SelectedDates
.Count > 0)
1632
this.
SelectedDates
[0] = lastSelectedDate.Value;
1636
this.
SelectedDates
.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
327
foreach (object child in _owner.
SelectedDates
)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
534
this.Owner.
SelectedDates
.Toggle(selectedDate);
540
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate);
598
this.Owner.
SelectedDates
.Toggle(clickedDate);
607
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
610
this.Owner.
SelectedDates
.AddRangeInternal(lastDate.Value, clickedDate);
626
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
631
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.CurrentDate, clickedDate);
641
this.Owner.
SelectedDates
.Toggle(clickedDate);
701
this.Owner.
SelectedDates
.Toggle(selectedDate);
709
this.Owner.
SelectedDates
.ClearInternal();
730
this.Owner.
SelectedDates
.ClearInternal();
784
if (this.Owner.
SelectedDates
.Count == 0)
786
this.Owner.
SelectedDates
.Add(selectedDate);
790
this.Owner.
SelectedDates
[0] = selectedDate;
849
this.Owner.
SelectedDates
.ClearInternal();
1121
foreach (DateTime item in this.Owner.
SelectedDates
)