2 writes to Owner
PresentationFramework (2)
System\Windows\Controls\Calendar.cs (2)
748_monthControl.Owner = null; 757_monthControl.Owner = this;
131 references to Owner
PresentationFramework (131)
System\Windows\Controls\Primitives\CalendarItem.cs (131)
102return (this.Owner != null) ? this.Owner.DisplayMode : CalendarMode.Month; 134return (Owner != null) ? Owner.DisplayDate : DateTime.Today; 210if (this.Owner != null) 212switch (this.Owner.DisplayMode) 267this.Owner.DisplayMode == CalendarMode.Month && 268this.Owner.HoverEnd.HasValue) 270FinishSelection(this.Owner.HoverEnd.Value); 293if (this.Owner != null) 295selectedYear = this.Owner.DisplayYear; 516if (this.Owner != null) 518this.Owner.CurrentDate = selectedDate; 520if (this.Owner.HoverStart.HasValue) 524DateTime.Compare(this.Owner.HoverStart.Value, selectedDate) == 0 && 525(Owner.SelectionMode == CalendarSelectionMode.SingleDate || Owner.SelectionMode == CalendarSelectionMode.MultipleRange)) 528this.Owner.SelectedDates.Toggle(selectedDate); 534this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 537Owner.OnDayClick(selectedDate); 546if (this.Owner == null) 551this.Owner.OnDayOrMonthPreviewKeyDown(e); 556if (this.Owner == null) 577switch (this.Owner.SelectionMode) 588this.Owner.SelectedDate = clickedDate; 592this.Owner.SelectedDates.Toggle(clickedDate); 600DateTime? lastDate = this.Owner.CurrentDate; 601this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 604this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 608this.Owner.SelectedDate = clickedDate; 609this.Owner.HoverStart = null; 610this.Owner.HoverEnd = null; 620this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 625this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 631this.Owner.SelectedDate = clickedDate; 635this.Owner.SelectedDates.Toggle(clickedDate); 636this.Owner.HoverStart = null; 637this.Owner.HoverEnd = null; 645this.Owner.OnDayClick(clickedDate); 658if (this.Owner == null || !(b.DataContext is DateTime)) 665this.Owner.HoverStart = null; 679switch (this.Owner.SelectionMode) 688this.Owner.DatePickerDisplayDateFlag = true; 691this.Owner.SelectedDate = selectedDate; 695this.Owner.SelectedDates.Toggle(selectedDate); 703this.Owner.SelectedDates.ClearInternal(); 707if (!this.Owner.HoverStart.HasValue) 709this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 714this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 724this.Owner.SelectedDates.ClearInternal(); 729if (!this.Owner.HoverStart.HasValue) 731this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 736this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 743this.Owner.CurrentDate = selectedDate; 744this.Owner.UpdateCellItems(); 765if (this.Owner == null || !(b.DataContext is DateTime)) 772switch (this.Owner.SelectionMode) 776this.Owner.DatePickerDisplayDateFlag = true; 777this.Owner.HoverStart = this.Owner.HoverEnd = null; 778if (this.Owner.SelectedDates.Count == 0) 780this.Owner.SelectedDates.Add(selectedDate); 784this.Owner.SelectedDates[0] = selectedDate; 791this.Owner.HoverEnd = selectedDate; 792this.Owner.CurrentDate = selectedDate; 793this.Owner.UpdateCellItems(); 806if (this.Owner == null) 813this.Owner.OnDayButtonMouseUp(e); 830if (this.Owner.SelectionMode == CalendarSelectionMode.None || this.Owner.SelectionMode == CalendarSelectionMode.SingleDate) 832this.Owner.OnDayClick(selectedDate); 836if (this.Owner.HoverStart.HasValue) 838switch (this.Owner.SelectionMode) 843this.Owner.SelectedDates.ClearInternal(); 862this.Owner.OnDayClick(selectedDate); 875this.Owner?.OnCalendarButtonPressed(b, false); 882if (b != null && this.Owner != null) 884this.Owner.OnCalendarButtonPressed(b, true); 893if (this._isMonthPressed && this.Owner != null) 895this.Owner.OnCalendarButtonPressed(b, false); 905this.Owner.OnCalendarButtonPressed(b, true); 911if (this.Owner != null) 913if (this.Owner.DisplayMode == CalendarMode.Month) 915this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Year); 919Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year); 921this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Decade); 930this.Owner?.OnPreviousClick(); 935this.Owner?.OnNextClick(); 956Owner = this.Owner 983Owner = this.Owner 1016if (this.Owner != null) 1018daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1065if (this.Owner != null) 1072if (DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0) 1084this.Owner.BlackoutDates.Contains(dateToAdd.Value)); 1089DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0); 1108foreach (DateTime item in this.Owner.SelectedDates) 1130var owner = this.Owner; 1186if (this.Owner != null) 1195if (this.Owner != null && _nextButton != null) 1209_nextButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1); 1216if (this.Owner != null && _previousButton != null) 1219_previousButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0); 1245if (this.Owner != null) 1247childButton.HasSelectedDays = (Owner.DisplayDate.Year == year); 1249if (year < this.Owner.DisplayDateStartInternal.Year || year > this.Owner.DisplayDateEndInternal.Year) 1289if (this.Owner != null) 1291childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateInternal) == 0); 1293if (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateEndInternal) > 0) 1321if (this.Owner != null && _nextButton != null) 1323_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year != DisplayDate.Year); 1329if (this.Owner != null && _previousButton != null) 1331_previousButton.IsEnabled = (this.Owner.DisplayDateStartInternal.Year != DisplayDate.Year); 1350if (this.Owner != null && _nextButton != null) 1352_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year > decadeEnd); 1358if (this.Owner != null && _previousButton != null) 1360_previousButton.IsEnabled = (decade > this.Owner.DisplayDateStartInternal.Year); 1372if (this.Owner != null) 1374i = ((day - this.Owner.FirstDayOfWeek + NUMBER_OF_DAYS_IN_WEEK) % NUMBER_OF_DAYS_IN_WEEK); 1400Source = this.Owner