34 references to OwningCalendar
PresentationFramework (34)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (34)
41if (this.OwningCalendar != null && this.OwningCalendar.MonthControl != null) 43if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 45return this.OwningCalendar.MonthControl.MonthView; 49return this.OwningCalendar.MonthControl.YearView; 105if (OwningCalendar.MonthControl == null) 115buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.PreviousButton); 120buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.HeaderButton); 125buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(OwningCalendar.MonthControl.NextButton); 138if (OwningCalendar.DisplayMode == CalendarMode.Month && childRow == 0) 152peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode, /*addParentInfo*/ false); 155DateTimeCalendarModePair key = new DateTimeCalendarModePair(date, OwningCalendar.DisplayMode); 177System.Windows.Controls.Calendar owner = OwningCalendar; 237peer = new DateTimeAutomationPeer(date, OwningCalendar, buttonMode); 291int numSelected = OwningCalendar.SelectedDates.Count; 353if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 370if (this.OwningCalendar.DisplayMode == CalendarMode.Month) 387AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date, OwningCalendar.DisplayMode); 405return (int)this.OwningCalendar.DisplayMode; 445this.OwningCalendar.DisplayMode = (CalendarMode)viewId; 456return this.OwningCalendar.SelectionMode == CalendarSelectionMode.SingleRange || this.OwningCalendar.SelectionMode == CalendarSelectionMode.MultipleRange; 472foreach (DateTime date in OwningCalendar.SelectedDates) 527currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 537currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode : OwningCalendar.DisplayMode; 560DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate; 574DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date : OwningCalendar.DisplayDate; 579if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 584if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate) 586return OwningCalendar.SelectedDates.MinimumDate; 592if (OwningCalendar.SelectedDates.Contains(startDate) == isSelected) 615if (this.OwningCalendar.DisplayMode == CalendarMode.Month)