42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
290
int numSelected = OwningCalendar.
SelectedDates
.Count;
462
foreach (DateTime date in OwningCalendar.
SelectedDates
)
569
if (!OwningCalendar.
SelectedDates
.MaximumDate.HasValue || OwningCalendar.
SelectedDates
.MaximumDate <= startDate)
574
if (OwningCalendar.
SelectedDates
.MinimumDate.HasValue && startDate < OwningCalendar.
SelectedDates
.MinimumDate)
576
return OwningCalendar.
SelectedDates
.MinimumDate;
582
if (OwningCalendar.
SelectedDates
.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
745
return this.OwningCalendar.
SelectedDates
.Contains(Date);
782
this.OwningCalendar.
SelectedDates
.Add(Date);
802
this.OwningCalendar.
SelectedDates
.Remove(Date);
System\Windows\Controls\Calendar.cs (14)
284
DateTime? maxSelectedDate = c.
SelectedDates
.MaximumDate;
341
DateTime? minSelectedDate = c.
SelectedDates
.MinimumDate;
553
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
557
if (addedDate.HasValue && !(c.
SelectedDates
.Count > 0 && c.
SelectedDates
[0] == addedDate.Value))
559
c.
SelectedDates
.ClearInternal();
560
c.
SelectedDates
.Add(addedDate.Value);
630
c.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
1106
this.
SelectedDates
.ClearInternal();
1109
this.
SelectedDates
.AddRange(this.HoverStart.Value, this.CurrentDate);
1577
this.
SelectedDates
.ClearInternal();
1618
if (this.
SelectedDates
.Count > 0)
1620
this.
SelectedDates
[0] = lastSelectedDate.Value;
1624
this.
SelectedDates
.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
325
foreach (object child in _owner.
SelectedDates
)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
529
this.Owner.
SelectedDates
.Toggle(selectedDate);
535
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate);
593
this.Owner.
SelectedDates
.Toggle(clickedDate);
602
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
605
this.Owner.
SelectedDates
.AddRangeInternal(lastDate.Value, clickedDate);
621
this.Owner.
SelectedDates
.ClearInternal(true /*fireChangeNotification*/);
626
this.Owner.
SelectedDates
.AddRangeInternal(this.Owner.CurrentDate, clickedDate);
636
this.Owner.
SelectedDates
.Toggle(clickedDate);
696
this.Owner.
SelectedDates
.Toggle(selectedDate);
704
this.Owner.
SelectedDates
.ClearInternal();
725
this.Owner.
SelectedDates
.ClearInternal();
779
if (this.Owner.
SelectedDates
.Count == 0)
781
this.Owner.
SelectedDates
.Add(selectedDate);
785
this.Owner.
SelectedDates
[0] = selectedDate;
844
this.Owner.
SelectedDates
.ClearInternal();
1109
foreach (DateTime item in this.Owner.
SelectedDates
)