42 references to SelectedDates
PresentationFramework (42)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
297int numSelected = OwningCalendar.SelectedDates.Count; 479foreach (DateTime date in OwningCalendar.SelectedDates) 586if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 591if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate) 593return OwningCalendar.SelectedDates.MinimumDate; 599if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (3)
752return this.OwningCalendar.SelectedDates.Contains(Date); 789this.OwningCalendar.SelectedDates.Add(Date); 809this.OwningCalendar.SelectedDates.Remove(Date);
System\Windows\Controls\Calendar.cs (14)
288DateTime? maxSelectedDate = c.SelectedDates.MaximumDate; 345DateTime? minSelectedDate = c.SelectedDates.MinimumDate; 557c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 561if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value)) 563c.SelectedDates.ClearInternal(); 564c.SelectedDates.Add(addedDate.Value); 634c.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 1115this.SelectedDates.ClearInternal(); 1118this.SelectedDates.AddRange(this.HoverStart.Value, this.CurrentDate); 1589this.SelectedDates.ClearInternal(); 1630if (this.SelectedDates.Count > 0) 1632this.SelectedDates[0] = lastSelectedDate.Value; 1636this.SelectedDates.Add(lastSelectedDate.Value);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (1)
327foreach (object child in _owner.SelectedDates)
System\Windows\Controls\Primitives\CalendarItem.cs (16)
534this.Owner.SelectedDates.Toggle(selectedDate); 540this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 598this.Owner.SelectedDates.Toggle(clickedDate); 607this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 610this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 626this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 631this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 641this.Owner.SelectedDates.Toggle(clickedDate); 701this.Owner.SelectedDates.Toggle(selectedDate); 709this.Owner.SelectedDates.ClearInternal(); 730this.Owner.SelectedDates.ClearInternal(); 784if (this.Owner.SelectedDates.Count == 0) 786this.Owner.SelectedDates.Add(selectedDate); 790this.Owner.SelectedDates[0] = selectedDate; 849this.Owner.SelectedDates.ClearInternal(); 1121foreach (DateTime item in this.Owner.SelectedDates)