1 write to _owner
PresentationFramework (1)
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (1)
40
this.
_owner
= owner;
35 references to _owner
PresentationFramework (35)
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (35)
115
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && this.Count > 0)
143
this.
_owner
.HoverStart = null;
166
if (Calendar.IsValidDateSelection(this.
_owner
, item))
180
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
182
this.
_owner
.SelectedDate = item;
191
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
195
this.
_owner
.UpdateCellItems();
230
int monthDifference = DateTimeHelper.CompareYearMonth(this[index], this.
_owner
.DisplayDateInternal);
241
this.
_owner
.SelectedDate = this[0];
245
this.
_owner
.SelectedDate = null;
253
this.
_owner
.UpdateCellItems();
282
if (item != null && DateTime.Compare(this[index], item) != 0 && Calendar.IsValidDateSelection(this.
_owner
, item))
291
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
293
this.
_owner
.SelectedDate = item;
298
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
302
this.
_owner
.UpdateCellItems();
329
if (Calendar.IsValidDateSelection(this.
_owner
, current))
336
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange)
338
this.
_owner
.CurrentDate = lastAddedDate;
366
if (this.
_owner
.SelectedDate != null)
368
this.
_owner
.SelectedDate = null;
378
this.
_owner
.UpdateCellItems();
385
if (Calendar.IsValidDateSelection(this.
_owner
, date))
387
switch (this.
_owner
.SelectionMode)
391
if (!this.
_owner
.SelectedDate.HasValue || DateTimeHelper.CompareDays(this.
_owner
.SelectedDate.Value, date) != 0)
393
this.
_owner
.SelectedDate = date;
397
this.
_owner
.SelectedDate = null;
428
this.
_owner
.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(Calendar.SelectedDatesChangedEvent, removedItems, addedItems));
445
this.
_owner
.UpdateCellItems();
450
if (this.
_owner
.SelectionMode == CalendarSelectionMode.None)
455
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleDate && this.Count > 0)
462
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)