34 references to OwningCalendar
PresentationFramework (34)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (34)
47if (this.OwningCalendar != null && this.OwningCalendar.MonthControl != null) 49if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 51return this.OwningCalendar.MonthControl.MonthView; 55return this.OwningCalendar.MonthControl.YearView; 111if (OwningCalendar.MonthControl == null) 121buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.PreviousButton); 126buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.HeaderButton); 131buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.NextButton); 144if (OwningCalendar.DisplayMode == CalendarMode.Month && childRow == 0) 158peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode, /*addParentInfo*/ false); 161DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.DisplayMode); 183System.Windows.Controls.Calendar owner = OwningCalendar; 243peer = new DateTimeAutomationPeer(date, OwningCalendar, buttonMode); 297int numSelected = OwningCalendar.SelectedDates.Count; 359if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 376if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 394AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode); 412return (int)this.OwningCalendar.DisplayMode; 452this.OwningCalendar.DisplayMode = (CalendarMode)viewId; 463return this.OwningCalendar.SelectionMode == CalendarSelectionMode.SingleRange || this.OwningCalendar.SelectionMode == CalendarSelectionMode.MultipleRange; 479foreach (DateTime date in OwningCalendar.SelectedDates) 534currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 544currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 567DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate; 581DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate; 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) 622if (this.OwningCalendar.DisplayMode == CalendarMode.Month)