2 writes to Owner
PresentationFramework (2)
System\Windows\Controls\Calendar.cs (2)
753_monthControl.Owner = null; 762_monthControl.Owner = this;
134 references to Owner
PresentationFramework (134)
System\Windows\Controls\Primitives\CalendarItem.cs (134)
108return (this.Owner != null) ? this.Owner.DisplayMode : CalendarMode.Month; 140return (Owner != null) ? Owner.DisplayDate : DateTime.Today; 216if (this.Owner != null) 218switch (this.Owner.DisplayMode) 273this.Owner.DisplayMode == CalendarMode.Month && 274this.Owner.HoverEnd.HasValue) 276FinishSelection(this.Owner.HoverEnd.Value); 299if (this.Owner != null) 301selectedYear = this.Owner.DisplayYear; 522if (this.Owner != null) 524this.Owner.CurrentDate = selectedDate; 526if (this.Owner.HoverStart.HasValue) 530DateTime.Compare(this.Owner.HoverStart.Value, selectedDate) == 0 && 531(Owner.SelectionMode == CalendarSelectionMode.SingleDate || Owner.SelectionMode == CalendarSelectionMode.MultipleRange)) 534this.Owner.SelectedDates.Toggle(selectedDate); 540this.Owner.SelectedDates.AddRangeInternal(this.Owner.HoverStart.Value, selectedDate); 543Owner.OnDayClick(selectedDate); 552if (this.Owner == null) 557this.Owner.OnDayOrMonthPreviewKeyDown(e); 562if (this.Owner == null) 583switch (this.Owner.SelectionMode) 594this.Owner.SelectedDate = clickedDate; 598this.Owner.SelectedDates.Toggle(clickedDate); 606DateTime? lastDate = this.Owner.CurrentDate; 607this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 610this.Owner.SelectedDates.AddRangeInternal(lastDate.Value, clickedDate); 614this.Owner.SelectedDate = clickedDate; 615this.Owner.HoverStart = null; 616this.Owner.HoverEnd = null; 626this.Owner.SelectedDates.ClearInternal(true /*fireChangeNotification*/); 631this.Owner.SelectedDates.AddRangeInternal(this.Owner.CurrentDate, clickedDate); 637this.Owner.SelectedDate = clickedDate; 641this.Owner.SelectedDates.Toggle(clickedDate); 642this.Owner.HoverStart = null; 643this.Owner.HoverEnd = null; 651this.Owner.OnDayClick(clickedDate); 664if (this.Owner == null || !(b.DataContext is DateTime)) 671this.Owner.HoverStart = null; 685switch (this.Owner.SelectionMode) 694this.Owner.DatePickerDisplayDateFlag = true; 697this.Owner.SelectedDate = selectedDate; 701this.Owner.SelectedDates.Toggle(selectedDate); 709this.Owner.SelectedDates.ClearInternal(); 713if (!this.Owner.HoverStart.HasValue) 715this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 720this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 730this.Owner.SelectedDates.ClearInternal(); 735if (!this.Owner.HoverStart.HasValue) 737this.Owner.HoverStart = this.Owner.HoverEnd = this.Owner.CurrentDate; 742this.Owner.HoverStart = this.Owner.HoverEnd = selectedDate; 749this.Owner.CurrentDate = selectedDate; 750this.Owner.UpdateCellItems(); 771if (this.Owner == null || !(b.DataContext is DateTime)) 778switch (this.Owner.SelectionMode) 782this.Owner.DatePickerDisplayDateFlag = true; 783this.Owner.HoverStart = this.Owner.HoverEnd = null; 784if (this.Owner.SelectedDates.Count == 0) 786this.Owner.SelectedDates.Add(selectedDate); 790this.Owner.SelectedDates[0] = selectedDate; 797this.Owner.HoverEnd = selectedDate; 798this.Owner.CurrentDate = selectedDate; 799this.Owner.UpdateCellItems(); 812if (this.Owner == null) 819this.Owner.OnDayButtonMouseUp(e); 836if (this.Owner.SelectionMode == CalendarSelectionMode.None || this.Owner.SelectionMode == CalendarSelectionMode.SingleDate) 838this.Owner.OnDayClick(selectedDate); 842if (this.Owner.HoverStart.HasValue) 844switch (this.Owner.SelectionMode) 849this.Owner.SelectedDates.ClearInternal(); 868this.Owner.OnDayClick(selectedDate); 881if (this.Owner != null) 883this.Owner.OnCalendarButtonPressed(b, false); 891if (b != null && this.Owner != null) 893this.Owner.OnCalendarButtonPressed(b, true); 902if (this._isMonthPressed && this.Owner != null) 904this.Owner.OnCalendarButtonPressed(b, false); 914this.Owner.OnCalendarButtonPressed(b, true); 920if (this.Owner != null) 922if (this.Owner.DisplayMode == CalendarMode.Month) 924this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Year); 928Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year); 930this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty, CalendarMode.Decade); 939if (this.Owner != null) 941this.Owner.OnPreviousClick(); 947if (this.Owner != null) 949this.Owner.OnNextClick(); 971dayCell.Owner = this.Owner; 997monthCell.Owner = this.Owner; 1029if (this.Owner != null) 1031daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1078if (this.Owner != null) 1085if (DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0) 1097this.Owner.BlackoutDates.Contains(dateToAdd.Value)); 1102DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0); 1121foreach (DateTime item in this.Owner.SelectedDates) 1143var owner = this.Owner; 1200if (this.Owner != null) 1209if (this.Owner != null && _nextButton != null) 1223_nextButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1); 1230if (this.Owner != null && _previousButton != null) 1233_previousButton.IsEnabled = (DateTimeHelper.CompareDays(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0); 1259if (this.Owner != null) 1261childButton.HasSelectedDays = (Owner.DisplayDate.Year == year); 1263if (year < this.Owner.DisplayDateStartInternal.Year || year > this.Owner.DisplayDateEndInternal.Year) 1303if (this.Owner != null) 1305childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateInternal) == 0); 1307if (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateEndInternal) > 0) 1335if (this.Owner != null && _nextButton != null) 1337_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year != DisplayDate.Year); 1343if (this.Owner != null && _previousButton != null) 1345_previousButton.IsEnabled = (this.Owner.DisplayDateStartInternal.Year != DisplayDate.Year); 1364if (this.Owner != null && _nextButton != null) 1366_nextButton.IsEnabled = (this.Owner.DisplayDateEndInternal.Year > decadeEnd); 1372if (this.Owner != null && _previousButton != null) 1374_previousButton.IsEnabled = (decade > this.Owner.DisplayDateStartInternal.Year); 1386if (this.Owner != null) 1388i = ((day - this.Owner.FirstDayOfWeek + NUMBER_OF_DAYS_IN_WEEK) % NUMBER_OF_DAYS_IN_WEEK); 1413result.Source = this.Owner;