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