1 write to _owner
PresentationFramework (1)
System\Windows\Controls\SelectedDatesCollection.cs (1)
39
this.
_owner
= owner;
35 references to _owner
PresentationFramework (35)
System\Windows\Controls\SelectedDatesCollection.cs (35)
114
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && this.Count > 0)
142
this.
_owner
.HoverStart = null;
165
if (Calendar.IsValidDateSelection(this.
_owner
, item))
179
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
181
this.
_owner
.SelectedDate = item;
190
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
194
this.
_owner
.UpdateCellItems();
229
int monthDifference = DateTimeHelper.CompareYearMonth(this[index], this.
_owner
.DisplayDateInternal);
240
this.
_owner
.SelectedDate = this[0];
244
this.
_owner
.SelectedDate = null;
252
this.
_owner
.UpdateCellItems();
281
if (DateTime.Compare(this[index], item) != 0 && Calendar.IsValidDateSelection(this.
_owner
, item))
290
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
292
this.
_owner
.SelectedDate = item;
297
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
301
this.
_owner
.UpdateCellItems();
328
if (Calendar.IsValidDateSelection(this.
_owner
, current))
335
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange)
337
this.
_owner
.CurrentDate = lastAddedDate;
365
if (this.
_owner
.SelectedDate != null)
367
this.
_owner
.SelectedDate = null;
377
this.
_owner
.UpdateCellItems();
384
if (Calendar.IsValidDateSelection(this.
_owner
, date))
386
switch (this.
_owner
.SelectionMode)
390
if (!this.
_owner
.SelectedDate.HasValue || DateTimeHelper.CompareDays(this.
_owner
.SelectedDate.Value, date) != 0)
392
this.
_owner
.SelectedDate = date;
396
this.
_owner
.SelectedDate = null;
427
this.
_owner
.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(Calendar.SelectedDatesChangedEvent, removedItems, addedItems));
444
this.
_owner
.UpdateCellItems();
449
if (this.
_owner
.SelectionMode == CalendarSelectionMode.None)
454
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleDate && this.Count > 0)
461
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)