2 writes to Owner
PresentationFramework (2)
System\Windows\Controls\Calendar.cs (2)
749
_monthControl.
Owner
= null;
758
_monthControl.
Owner
= this;
131 references to Owner
PresentationFramework (131)
System\Windows\Controls\Primitives\CalendarItem.cs (131)
103
return (this.
Owner
!= null) ? this.
Owner
.DisplayMode : CalendarMode.Month;
135
return (
Owner
!= null) ?
Owner
.DisplayDate : DateTime.Today;
211
if (this.
Owner
!= null)
213
switch (this.
Owner
.DisplayMode)
268
this.
Owner
.DisplayMode == CalendarMode.Month &&
269
this.
Owner
.HoverEnd.HasValue)
271
FinishSelection(this.
Owner
.HoverEnd.Value);
294
if (this.
Owner
!= null)
296
selectedYear = this.
Owner
.DisplayYear;
517
if (this.
Owner
!= null)
519
this.
Owner
.CurrentDate = selectedDate;
521
if (this.
Owner
.HoverStart.HasValue)
525
DateTime.Compare(this.
Owner
.HoverStart.Value, selectedDate) == 0 &&
526
(
Owner
.SelectionMode == CalendarSelectionMode.SingleDate ||
Owner
.SelectionMode == CalendarSelectionMode.MultipleRange))
529
this.
Owner
.SelectedDates.Toggle(selectedDate);
535
this.
Owner
.SelectedDates.AddRangeInternal(this.
Owner
.HoverStart.Value, selectedDate);
538
Owner
.OnDayClick(selectedDate);
547
if (this.
Owner
== null)
552
this.
Owner
.OnDayOrMonthPreviewKeyDown(e);
557
if (this.
Owner
== null)
578
switch (this.
Owner
.SelectionMode)
589
this.
Owner
.SelectedDate = clickedDate;
593
this.
Owner
.SelectedDates.Toggle(clickedDate);
601
DateTime? lastDate = this.
Owner
.CurrentDate;
602
this.
Owner
.SelectedDates.ClearInternal(true /*fireChangeNotification*/);
605
this.
Owner
.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate);
609
this.
Owner
.SelectedDate = clickedDate;
610
this.
Owner
.HoverStart = null;
611
this.
Owner
.HoverEnd = null;
621
this.
Owner
.SelectedDates.ClearInternal(true /*fireChangeNotification*/);
626
this.
Owner
.SelectedDates.AddRangeInternal(this.
Owner
.CurrentDate, clickedDate);
632
this.
Owner
.SelectedDate = clickedDate;
636
this.
Owner
.SelectedDates.Toggle(clickedDate);
637
this.
Owner
.HoverStart = null;
638
this.
Owner
.HoverEnd = null;
646
this.
Owner
.OnDayClick(clickedDate);
659
if (this.
Owner
== null || !(b.DataContext is DateTime))
666
this.
Owner
.HoverStart = null;
680
switch (this.
Owner
.SelectionMode)
689
this.
Owner
.DatePickerDisplayDateFlag = true;
692
this.
Owner
.SelectedDate = selectedDate;
696
this.
Owner
.SelectedDates.Toggle(selectedDate);
704
this.
Owner
.SelectedDates.ClearInternal();
708
if (!this.
Owner
.HoverStart.HasValue)
710
this.
Owner
.HoverStart = this.
Owner
.HoverEnd = this.
Owner
.CurrentDate;
715
this.
Owner
.HoverStart = this.
Owner
.HoverEnd = selectedDate;
725
this.
Owner
.SelectedDates.ClearInternal();
730
if (!this.
Owner
.HoverStart.HasValue)
732
this.
Owner
.HoverStart = this.
Owner
.HoverEnd = this.
Owner
.CurrentDate;
737
this.
Owner
.HoverStart = this.
Owner
.HoverEnd = selectedDate;
744
this.
Owner
.CurrentDate = selectedDate;
745
this.
Owner
.UpdateCellItems();
766
if (this.
Owner
== null || !(b.DataContext is DateTime))
773
switch (this.
Owner
.SelectionMode)
777
this.
Owner
.DatePickerDisplayDateFlag = true;
778
this.
Owner
.HoverStart = this.
Owner
.HoverEnd = null;
779
if (this.
Owner
.SelectedDates.Count == 0)
781
this.
Owner
.SelectedDates.Add(selectedDate);
785
this.
Owner
.SelectedDates[0] = selectedDate;
792
this.
Owner
.HoverEnd = selectedDate;
793
this.
Owner
.CurrentDate = selectedDate;
794
this.
Owner
.UpdateCellItems();
807
if (this.
Owner
== null)
814
this.
Owner
.OnDayButtonMouseUp(e);
831
if (this.
Owner
.SelectionMode == CalendarSelectionMode.None || this.
Owner
.SelectionMode == CalendarSelectionMode.SingleDate)
833
this.
Owner
.OnDayClick(selectedDate);
837
if (this.
Owner
.HoverStart.HasValue)
839
switch (this.
Owner
.SelectionMode)
844
this.
Owner
.SelectedDates.ClearInternal();
863
this.
Owner
.OnDayClick(selectedDate);
876
this.
Owner
?.OnCalendarButtonPressed(b, false);
883
if (b != null && this.
Owner
!= null)
885
this.
Owner
.OnCalendarButtonPressed(b, true);
894
if (this._isMonthPressed && this.
Owner
!= null)
896
this.
Owner
.OnCalendarButtonPressed(b, false);
906
this.
Owner
.OnCalendarButtonPressed(b, true);
912
if (this.
Owner
!= null)
914
if (this.
Owner
.DisplayMode == CalendarMode.Month)
916
this.
Owner
.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Year);
920
Debug.Assert(this.
Owner
.DisplayMode == CalendarMode.Year);
922
this.
Owner
.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Decade);
931
this.
Owner
?.OnPreviousClick();
936
this.
Owner
?.OnNextClick();
957
Owner = this.
Owner
984
Owner = this.
Owner
1017
if (this.
Owner
!= null)
1019
daytitle.DataContext = shortestDayNames[(childIndex + (int)this.
Owner
.FirstDayOfWeek) % shortestDayNames.Length];
1066
if (this.
Owner
!= null)
1073
if (DateTimeHelper.CompareDays(dateToAdd.Value, this.
Owner
.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.
Owner
.DisplayDateEndInternal) > 0)
1085
this.
Owner
.BlackoutDates.Contains(dateToAdd.Value));
1090
DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.
Owner
.DisplayDateInternal) != 0);
1109
foreach (DateTime item in this.
Owner
.SelectedDates)
1131
var owner = this.
Owner
;
1187
if (this.
Owner
!= null)
1196
if (this.
Owner
!= null && _nextButton != null)
1210
_nextButton.IsEnabled = (DateTimeHelper.CompareDays(this.
Owner
.DisplayDateEndInternal, firstDayOfNextMonth) > -1);
1217
if (this.
Owner
!= null && _previousButton != null)
1220
_previousButton.IsEnabled = (DateTimeHelper.CompareDays(this.
Owner
.DisplayDateStartInternal, firstDayOfMonth) < 0);
1246
if (this.
Owner
!= null)
1248
childButton.HasSelectedDays = (
Owner
.DisplayDate.Year == year);
1250
if (year < this.
Owner
.DisplayDateStartInternal.Year || year > this.
Owner
.DisplayDateEndInternal.Year)
1290
if (this.
Owner
!= null)
1292
childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.
Owner
.DisplayDateInternal) == 0);
1294
if (DateTimeHelper.CompareYearMonth(day, this.
Owner
.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.
Owner
.DisplayDateEndInternal) > 0)
1322
if (this.
Owner
!= null && _nextButton != null)
1324
_nextButton.IsEnabled = (this.
Owner
.DisplayDateEndInternal.Year != DisplayDate.Year);
1330
if (this.
Owner
!= null && _previousButton != null)
1332
_previousButton.IsEnabled = (this.
Owner
.DisplayDateStartInternal.Year != DisplayDate.Year);
1351
if (this.
Owner
!= null && _nextButton != null)
1353
_nextButton.IsEnabled = (this.
Owner
.DisplayDateEndInternal.Year > decadeEnd);
1359
if (this.
Owner
!= null && _previousButton != null)
1361
_previousButton.IsEnabled = (decade > this.
Owner
.DisplayDateStartInternal.Year);
1373
if (this.
Owner
!= null)
1375
i = ((day - this.
Owner
.FirstDayOfWeek + NUMBER_OF_DAYS_IN_WEEK) % NUMBER_OF_DAYS_IN_WEEK);
1401
Source = this.
Owner