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