42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
289
int numSelected = OwningCalendar.
SelectedDates
.Count;
461
foreach (DateTime date in OwningCalendar.
SelectedDates
)
568
if (!OwningCalendar.
SelectedDates
.MaximumDate.HasValue || OwningCalendar.
SelectedDates
.MaximumDate <= startDate)
573
if (OwningCalendar.
SelectedDates
.MinimumDate.HasValue && startDate < OwningCalendar.
SelectedDates
.MinimumDate)
575
return OwningCalendar.
SelectedDates
.MinimumDate;
581
if (OwningCalendar.
SelectedDates
.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
744
return this.OwningCalendar.
SelectedDates
.Contains(Date);
781
this.OwningCalendar.
SelectedDates
.Add(Date);
801
this.OwningCalendar.
SelectedDates
.Remove(Date);
System\Windows\Controls\Calendar.cs (14)
283
DateTime? maxSelectedDate = c.
SelectedDates
.MaximumDate;
340
DateTime? minSelectedDate = c.
SelectedDates
.MinimumDate;
552
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
556
if (addedDate.HasValue && !(c.
SelectedDates
.Count > 0 && c.
SelectedDates
[0] == addedDate.Value))
558
c.
SelectedDates
.ClearInternal();
559
c.
SelectedDates
.Add(addedDate.Value);
629
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
1105
this.
SelectedDates
.ClearInternal();
1108
this.
SelectedDates
.AddRange(this.HoverStart.Value, this.CurrentDate);
1576
this.
SelectedDates
.ClearInternal();
1617
if (this.
SelectedDates
.Count > 0)
1619
this.
SelectedDates
[0] = lastSelectedDate.Value;
1623
this.
SelectedDates
.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
324
foreach (object child in _owner.
SelectedDates
)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
528
this.Owner.
SelectedDates
.Toggle(selectedDate);
534
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate);
592
this.Owner.
SelectedDates
.Toggle(clickedDate);
601
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
604
this.Owner.
SelectedDates
.AddRangeInternal(lastDate.Value, clickedDate);
620
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
625
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.CurrentDate, clickedDate);
635
this.Owner.
SelectedDates
.Toggle(clickedDate);
695
this.Owner.
SelectedDates
.Toggle(selectedDate);
703
this.Owner.
SelectedDates
.ClearInternal();
724
this.Owner.
SelectedDates
.ClearInternal();
778
if (this.Owner.
SelectedDates
.Count == 0)
780
this.Owner.
SelectedDates
.Add(selectedDate);
784
this.Owner.
SelectedDates
[0] = selectedDate;
843
this.Owner.
SelectedDates
.ClearInternal();
1108
foreach (DateTime item in this.Owner.
SelectedDates
)