34 references to OwningCalendar
PresentationFramework (34)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (34)
48
if (this.
OwningCalendar
!= null && this.
OwningCalendar
.MonthControl != null)
50
if (this.
OwningCalendar
.DisplayMode == CalendarMode.Month)
52
return this.
OwningCalendar
.MonthControl.MonthView;
56
return this.
OwningCalendar
.MonthControl.YearView;
112
if (
OwningCalendar
.MonthControl == null)
122
buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(
OwningCalendar
.MonthControl.PreviousButton);
127
buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(
OwningCalendar
.MonthControl.HeaderButton);
132
buttonPeer = FrameworkElementAutomationPeer.CreatePeerForElement(
OwningCalendar
.MonthControl.NextButton);
145
if (
OwningCalendar
.DisplayMode == CalendarMode.Month && childRow == 0)
159
peer = GetOrCreateDateTimeAutomationPeer(date,
OwningCalendar
.DisplayMode, /*addParentInfo*/ false);
162
DateTimeCalendarModePair key = new DateTimeCalendarModePair(date,
OwningCalendar
.DisplayMode);
184
System.Windows.Controls.Calendar owner =
OwningCalendar
;
250
peer = new DateTimeAutomationPeer(date,
OwningCalendar
, buttonMode);
305
int numSelected =
OwningCalendar
.SelectedDates.Count;
367
if (this.
OwningCalendar
.DisplayMode == CalendarMode.Month)
384
if (this.
OwningCalendar
.DisplayMode == CalendarMode.Month)
402
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
OwningCalendar
.DisplayMode);
420
return (int)this.
OwningCalendar
.DisplayMode;
462
this.
OwningCalendar
.DisplayMode = (CalendarMode)viewId;
473
return this.
OwningCalendar
.SelectionMode == CalendarSelectionMode.SingleRange || this.
OwningCalendar
.SelectionMode == CalendarSelectionMode.MultipleRange;
489
foreach (DateTime date in
OwningCalendar
.SelectedDates)
544
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode :
OwningCalendar
.DisplayMode;
554
currentMode = (startAfterDatePeer != null) ? startAfterDatePeer.ButtonMode :
OwningCalendar
.DisplayMode;
577
DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date :
OwningCalendar
.DisplayDate;
591
DateTime startDate = (currentDatePeer != null) ? currentDatePeer.Date :
OwningCalendar
.DisplayDate;
596
if (!
OwningCalendar
.SelectedDates.MaximumDate.HasValue ||
OwningCalendar
.SelectedDates.MaximumDate <= startDate)
601
if (
OwningCalendar
.SelectedDates.MinimumDate.HasValue && startDate <
OwningCalendar
.SelectedDates.MinimumDate)
603
return
OwningCalendar
.SelectedDates.MinimumDate;
609
if (
OwningCalendar
.SelectedDates.Contains(startDate) == isSelected)
632
if (this.
OwningCalendar
.DisplayMode == CalendarMode.Month)