1 write to _owner
PresentationFramework (1)
System\Windows\Controls\SelectedDatesCollection.cs (1)
35
this.
_owner
= owner;
35 references to _owner
PresentationFramework (35)
System\Windows\Controls\SelectedDatesCollection.cs (35)
110
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && this.Count > 0)
138
this.
_owner
.HoverStart = null;
161
if (Calendar.IsValidDateSelection(this.
_owner
, item))
175
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
177
this.
_owner
.SelectedDate = item;
186
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
190
this.
_owner
.UpdateCellItems();
225
int monthDifference = DateTimeHelper.CompareYearMonth(this[index], this.
_owner
.DisplayDateInternal);
236
this.
_owner
.SelectedDate = this[0];
240
this.
_owner
.SelectedDate = null;
248
this.
_owner
.UpdateCellItems();
277
if (DateTime.Compare(this[index], item) != 0 && Calendar.IsValidDateSelection(this.
_owner
, item))
286
if (index == 0 && !(this.
_owner
.SelectedDate.HasValue && DateTime.Compare(this.
_owner
.SelectedDate.Value, item) == 0))
288
this.
_owner
.SelectedDate = item;
293
int monthDifference = DateTimeHelper.CompareYearMonth(item, this.
_owner
.DisplayDateInternal);
297
this.
_owner
.UpdateCellItems();
324
if (Calendar.IsValidDateSelection(this.
_owner
, current))
331
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange)
333
this.
_owner
.CurrentDate = lastAddedDate;
361
if (this.
_owner
.SelectedDate != null)
363
this.
_owner
.SelectedDate = null;
373
this.
_owner
.UpdateCellItems();
380
if (Calendar.IsValidDateSelection(this.
_owner
, date))
382
switch (this.
_owner
.SelectionMode)
386
if (!this.
_owner
.SelectedDate.HasValue || DateTimeHelper.CompareDays(this.
_owner
.SelectedDate.Value, date) != 0)
388
this.
_owner
.SelectedDate = date;
392
this.
_owner
.SelectedDate = null;
423
this.
_owner
.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(Calendar.SelectedDatesChangedEvent, removedItems, addedItems));
440
this.
_owner
.UpdateCellItems();
445
if (this.
_owner
.SelectionMode == CalendarSelectionMode.None)
450
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleDate && this.Count > 0)
457
if (this.
_owner
.SelectionMode == CalendarSelectionMode.SingleRange && !_isAddingRange && this.Count > 0)