2 writes to Owner
PresentationFramework (2)
System\Windows\Controls\Calendar.cs (2)
749_monthControl.Owner = null; 758_monthControl.Owner = this;
134 references to Owner
PresentationFramework (134)
System\Windows\Controls\Primitives\CalendarItem.cs (134)
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); 876if (this.Owner != null) 878this.Owner.OnCalendarButtonPressed(b, false); 886if (b != null && this.Owner != null) 888this.Owner.OnCalendarButtonPressed(b, true); 897if (this._isMonthPressed && this.Owner != null) 899this.Owner.OnCalendarButtonPressed(b, false); 909this.Owner.OnCalendarButtonPressed(b, true); 915if (this.Owner != null) 917if (this.Owner.DisplayMode == CalendarMode.Month) 919this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Year); 923Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year); 925this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Decade); 934if (this.Owner != null) 936this.Owner.OnPreviousClick(); 942if (this.Owner != null) 944this.Owner.OnNextClick(); 966dayCell.Owner = this.Owner; 992monthCell.Owner = this.Owner; 1024if (this.Owner != null) 1026daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1073if (this.Owner != null) 1080if (DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0) 1092this.Owner.BlackoutDates.Contains(dateToAdd.Value)); 1097DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0); 1116foreach (DateTime item in this.Owner.SelectedDates) 1138var owner = this.Owner; 1195if (this.Owner != null) 1204if (this.Owner != null && _nextButton != null) 1218_nextButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1); 1225if (this.Owner != null && _previousButton != null) 1228_previousButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0); 1254if (this.Owner != null) 1256childButton.HasSelectedDays = (Owner.DisplayDate.Year == year); 1258if (year < this.Owner.DisplayDateStartInternal.Year || year > this.Owner.DisplayDateEndInternal.Year) 1298if (this.Owner != null) 1300childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateInternal) == 0); 1302if (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateEndInternal) > 0) 1330if (this.Owner != null && _nextButton != null) 1332_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year != DisplayDate.Year); 1338if (this.Owner != null && _previousButton != null) 1340_previousButton.IsEnabled = (this.Owner.DisplayDateStartInternal.Year != DisplayDate.Year); 1359if (this.Owner != null && _nextButton != null) 1361_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year > decadeEnd); 1367if (this.Owner != null && _previousButton != null) 1369_previousButton.IsEnabled = (decade > this.Owner.DisplayDateStartInternal.Year); 1381if (this.Owner != null) 1383i = ((day - this.Owner.FirstDayOfWeek + NUMBER_OF_DAYS_IN_WEEK) % NUMBER_OF_DAYS_IN_WEEK); 1408result.Source = this.Owner;