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