2 writes to Owner
PresentationFramework (2)
src\Framework\System\Windows\Controls\Calendar.cs (2)
754_monthControl.Owner = null; 763_monthControl.Owner = this;
135 references to Owner
PresentationFramework (135)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (135)
109return (this.Owner != null) ? this.Owner.DisplayMode : CalendarMode.Month; 141return (Owner != null) ? Owner.DisplayDate : DateTime.Today; 217if (this.Owner != null) 219switch (this.Owner.DisplayMode) 274this.Owner.DisplayMode == CalendarMode.Month && 275this.Owner.HoverEnd.HasValue) 277FinishSelection(this.Owner.HoverEnd.Value); 300if (this.Owner != null) 302selectedYear = this.Owner.DisplayYear; 523if (this.Owner != null) 525this.Owner.CurrentDate = selectedDate; 527if (this.Owner.HoverStart.HasValue) 531DateTime.Compare(this.Owner.HoverStart.Value, selectedDate) == 0 && 532(Owner.SelectionMode == CalendarSelectionMode.SingleDate || Owner.SelectionMode == CalendarSelectionMode.MultipleRange)) 535this.Owner.SelectedDates.Toggle(selectedDate); 541this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 544Owner.OnDayClick(selectedDate); 553if (this.Owner == null) 558this.Owner.OnDayOrMonthPreviewKeyDown(e); 563if (this.Owner == null) 584switch (this.Owner.SelectionMode) 595this.Owner.SelectedDate = clickedDate; 599this.Owner.SelectedDates.Toggle(clickedDate); 607DateTime? lastDate = this.Owner.CurrentDate; 608this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 611this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 615this.Owner.SelectedDate = clickedDate; 616this.Owner.HoverStart = null; 617this.Owner.HoverEnd = null; 627this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 632this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 638this.Owner.SelectedDate = clickedDate; 642this.Owner.SelectedDates.Toggle(clickedDate); 643this.Owner.HoverStart = null; 644this.Owner.HoverEnd = null; 652this.Owner.OnDayClick(clickedDate); 665if (this.Owner == null || !(b.DataContext is DateTime)) 672this.Owner.HoverStart = null; 687switch (this.Owner.SelectionMode) 696this.Owner.DatePickerDisplayDateFlag = true; 699this.Owner.SelectedDate = selectedDate; 703this.Owner.SelectedDates.Toggle(selectedDate); 711this.Owner.SelectedDates.ClearInternal(); 715if (!this.Owner.HoverStart.HasValue) 717this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 722this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 732this.Owner.SelectedDates.ClearInternal(); 737if (!this.Owner.HoverStart.HasValue) 739this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 744this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 751this.Owner.CurrentDate = selectedDate; 752this.Owner.UpdateCellItems(); 773if (this.Owner == null || !(b.DataContext is DateTime)) 780switch (this.Owner.SelectionMode) 784this.Owner.DatePickerDisplayDateFlag = true; 785this.Owner.HoverStart = this.Owner.HoverEnd = null; 786if (this.Owner.SelectedDates.Count == 0) 788this.Owner.SelectedDates.Add(selectedDate); 792this.Owner.SelectedDates[0] = selectedDate; 799this.Owner.HoverEnd = selectedDate; 800this.Owner.CurrentDate = selectedDate; 801this.Owner.UpdateCellItems(); 814if (this.Owner == null) 821this.Owner.OnDayButtonMouseUp(e); 838if (this.Owner.SelectionMode == CalendarSelectionMode.None || this.Owner.SelectionMode == CalendarSelectionMode.SingleDate) 840this.Owner.OnDayClick(selectedDate); 844if (this.Owner.HoverStart.HasValue) 846switch (this.Owner.SelectionMode) 851this.Owner.SelectedDates.ClearInternal(); 870this.Owner.OnDayClick(selectedDate); 883if (this.Owner != null) 885this.Owner.OnCalendarButtonPressed(b, false); 893if (b != null && this.Owner != null) 895this.Owner.OnCalendarButtonPressed(b, true); 904if (this._isMonthPressed && this.Owner != null) 906this.Owner.OnCalendarButtonPressed(b, false); 916this.Owner.OnCalendarButtonPressed(b, true); 922if (this.Owner != null) 924if (this.Owner.DisplayMode == CalendarMode.Month) 926this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Year); 930Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year); 932this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Decade); 941if (this.Owner != null) 943this.Owner.OnPreviousClick(); 949if (this.Owner != null) 951this.Owner.OnNextClick(); 973dayCell.Owner = this.Owner; 999monthCell.Owner = this.Owner; 1032if (this.Owner != null) 1034daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1081if (this.Owner != null) 1088if (DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0) 1100this.Owner.BlackoutDates.Contains(dateToAdd.Value)); 1105DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0); 1124foreach (DateTime item in this.Owner.SelectedDates) 1146var owner = this.Owner; 1203if (this.Owner != null) 1212if (this.Owner != null && _nextButton != null) 1226_nextButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1); 1233if (this.Owner != null && _previousButton != null) 1236_previousButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0); 1262if (this.Owner != null) 1264childButton.HasSelectedDays = (Owner.DisplayDate.Year == year); 1266if (year < this.Owner.DisplayDateStartInternal.Year || year > this.Owner.DisplayDateEndInternal.Year) 1306if (this.Owner != null) 1308Debug.Assert(this.Owner.DisplayDateInternal != null); 1309childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateInternal) == 0); 1311if (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateEndInternal) > 0) 1339if (this.Owner != null && _nextButton != null) 1341_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year != DisplayDate.Year); 1347if (this.Owner != null && _previousButton != null) 1349_previousButton.IsEnabled = (this.Owner.DisplayDateStartInternal.Year != DisplayDate.Year); 1368if (this.Owner != null && _nextButton != null) 1370_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year > decadeEnd); 1376if (this.Owner != null && _previousButton != null) 1378_previousButton.IsEnabled = (decade > this.Owner.DisplayDateStartInternal.Year); 1390if (this.Owner != null) 1392i = ((day - this.Owner.FirstDayOfWeek + NUMBER_OF_DAYS_IN_WEEK) % NUMBER_OF_DAYS_IN_WEEK); 1417result.Source = this.Owner;