42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
289int numSelected = OwningCalendar.SelectedDates.Count; 461foreach (DateTime date in OwningCalendar.SelectedDates) 568if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 573if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate) 575return OwningCalendar.SelectedDates.MinimumDate; 581if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
744return this.OwningCalendar.SelectedDates.Contains(Date); 781this.OwningCalendar.SelectedDates.Add(Date); 801this.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*/); 1105this.SelectedDates.ClearInternal(); 1108this.SelectedDates.AddRange(this.HoverStart.Value, this.CurrentDate); 1576this.SelectedDates.ClearInternal(); 1617if (this.SelectedDates.Count > 0) 1619this.SelectedDates[0] = lastSelectedDate.Value; 1623this.SelectedDates.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
324foreach (object child in _owner.SelectedDates)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
528this.Owner.SelectedDates.Toggle(selectedDate); 534this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 592this.Owner.SelectedDates.Toggle(clickedDate); 601this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 604this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 620this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 625this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 635this.Owner.SelectedDates.Toggle(clickedDate); 695this.Owner.SelectedDates.Toggle(selectedDate); 703this.Owner.SelectedDates.ClearInternal(); 724this.Owner.SelectedDates.ClearInternal(); 778if (this.Owner.SelectedDates.Count == 0) 780this.Owner.SelectedDates.Add(selectedDate); 784this.Owner.SelectedDates[0] = selectedDate; 843this.Owner.SelectedDates.ClearInternal(); 1108foreach (DateTime item in this.Owner.SelectedDates)