42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
286
int numSelected = OwningCalendar.
SelectedDates
.Count;
458
foreach (DateTime date in OwningCalendar.
SelectedDates
)
565
if (!OwningCalendar.
SelectedDates
.MaximumDate.HasValue || OwningCalendar.
SelectedDates
.MaximumDate <= startDate)
570
if (OwningCalendar.
SelectedDates
.MinimumDate.HasValue && startDate < OwningCalendar.
SelectedDates
.MinimumDate)
572
return OwningCalendar.
SelectedDates
.MinimumDate;
578
if (OwningCalendar.
SelectedDates
.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
741
return this.OwningCalendar.
SelectedDates
.Contains(Date);
778
this.OwningCalendar.
SelectedDates
.Add(Date);
798
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*/);
1099
this.
SelectedDates
.ClearInternal();
1102
this.
SelectedDates
.AddRange(this.HoverStart.Value, this.CurrentDate);
1570
this.
SelectedDates
.ClearInternal();
1611
if (this.
SelectedDates
.Count > 0)
1613
this.
SelectedDates
[0] = lastSelectedDate.Value;
1617
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
)