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