42 references to SelectedDates
PresentationFramework (42)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
305int numSelected = OwningCalendar.SelectedDates.Count; 489foreach (DateTime date in OwningCalendar.SelectedDates) 596if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 601if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate) 603return OwningCalendar.SelectedDates.MinimumDate; 609if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected)
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
728return this.OwningCalendar.SelectedDates.Contains(Date); 765this.OwningCalendar.SelectedDates.Add(Date); 785this.OwningCalendar.SelectedDates.Remove(Date);
src\Framework\System\Windows\Controls\Calendar.cs (14)
289DateTime? maxSelectedDate = c.SelectedDates.MaximumDate; 346DateTime? minSelectedDate = c.SelectedDates.MinimumDate; 558c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 562if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value)) 564c.SelectedDates.ClearInternal(); 565c.SelectedDates.Add(addedDate.Value); 635c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 1116this.SelectedDates.ClearInternal(); 1119this.SelectedDates.AddRange(this.HoverStart.Value, this.CurrentDate); 1593this.SelectedDates.ClearInternal(); 1634if (this.SelectedDates.Count > 0) 1636this.SelectedDates[0] = lastSelectedDate.Value; 1640this.SelectedDates.Add(lastSelectedDate.Value);
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
330foreach (object child in _owner.SelectedDates)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (16)
535this.Owner.SelectedDates.Toggle(selectedDate); 541this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 599this.Owner.SelectedDates.Toggle(clickedDate); 608this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 611this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 627this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 632this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 642this.Owner.SelectedDates.Toggle(clickedDate); 703this.Owner.SelectedDates.Toggle(selectedDate); 711this.Owner.SelectedDates.ClearInternal(); 732this.Owner.SelectedDates.ClearInternal(); 786if (this.Owner.SelectedDates.Count == 0) 788this.Owner.SelectedDates.Add(selectedDate); 792this.Owner.SelectedDates[0] = selectedDate; 851this.Owner.SelectedDates.ClearInternal(); 1124foreach (DateTime item in this.Owner.SelectedDates)