42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
286int numSelected = OwningCalendar.SelectedDates.Count; 458foreach (DateTime date in OwningCalendar.SelectedDates) 565if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 570if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate) 572return OwningCalendar.SelectedDates.MinimumDate; 578if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
741return this.OwningCalendar.SelectedDates.Contains(Date); 778this.OwningCalendar.SelectedDates.Add(Date); 798this.OwningCalendar.SelectedDates.Remove(Date);
System\Windows\Controls\Calendar.cs (14)
283DateTime? maxSelectedDate = c.SelectedDates.MaximumDate; 340DateTime? minSelectedDate = c.SelectedDates.MinimumDate; 552c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 556if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value)) 558c.SelectedDates.ClearInternal(); 559c.SelectedDates.Add(addedDate.Value); 629c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 1099this.SelectedDates.ClearInternal(); 1102this.SelectedDates.AddRange(this.HoverStart.Value, this.CurrentDate); 1570this.SelectedDates.ClearInternal(); 1611if (this.SelectedDates.Count > 0) 1613this.SelectedDates[0] = lastSelectedDate.Value; 1617this.SelectedDates.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
324foreach (object child in _owner.SelectedDates)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
514this.Owner.SelectedDates.Toggle(selectedDate); 520this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 578this.Owner.SelectedDates.Toggle(clickedDate); 587this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 590this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 606this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 611this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 621this.Owner.SelectedDates.Toggle(clickedDate); 681this.Owner.SelectedDates.Toggle(selectedDate); 689this.Owner.SelectedDates.ClearInternal(); 710this.Owner.SelectedDates.ClearInternal(); 764if (this.Owner.SelectedDates.Count == 0) 766this.Owner.SelectedDates.Add(selectedDate); 770this.Owner.SelectedDates[0] = selectedDate; 829this.Owner.SelectedDates.ClearInternal(); 1094foreach (DateTime item in this.Owner.SelectedDates)