12 references to CompareDays
PresentationFramework (12)
System\Windows\Controls\Calendar.cs (1)
863
if (DateTimeHelper.
CompareDays
((DateTime)b.DataContext, day) == 0)
System\Windows\Controls\DateTimeHelper.cs (2)
183
if (
CompareDays
(date, start) > -1 &&
CompareDays
(date, end) < 1)
System\Windows\Controls\Primitives\CalendarItem.cs (8)
384
if (DateTimeHelper.
CompareDays
(date, (DateTime)b.DataContext) == 0)
1085
if (DateTimeHelper.
CompareDays
(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.
CompareDays
(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0)
1105
if (DateTimeHelper.
CompareDays
(dateToAdd.Value, DateTime.Today) == 0)
1123
isSelected |= (DateTimeHelper.
CompareDays
(dateToAdd.Value, item) == 0);
1154
int daysToHighlight = DateTimeHelper.
CompareDays
(owner.HoverEnd.Value, owner.HoverStart.Value);
1223
_nextButton.IsEnabled = (DateTimeHelper.
CompareDays
(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1);
1233
_previousButton.IsEnabled = (DateTimeHelper.
CompareDays
(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0);
System\Windows\Controls\SelectedDatesCollection.cs (1)
390
if (!this._owner.SelectedDate.HasValue || DateTimeHelper.
CompareDays
(this._owner.SelectedDate.Value, date) != 0)