12 references to CompareDays
PresentationFramework (12)
src\Framework\System\Windows\Controls\Calendar.cs (1)
864
if (DateTimeHelper.
CompareDays
((DateTime)b.DataContext, day) == 0)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
183
if (
CompareDays
(date, start) > -1 &&
CompareDays
(date, end) < 1)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (8)
385
if (DateTimeHelper.
CompareDays
(date, (DateTime)b.DataContext) == 0)
1088
if (DateTimeHelper.
CompareDays
(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.
CompareDays
(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0)
1108
if (DateTimeHelper.
CompareDays
(dateToAdd.Value, DateTime.Today) == 0)
1126
isSelected |= (DateTimeHelper.
CompareDays
(dateToAdd.Value, item) == 0);
1157
int daysToHighlight = DateTimeHelper.
CompareDays
(owner.HoverEnd.Value, owner.HoverStart.Value);
1226
_nextButton.IsEnabled = (DateTimeHelper.
CompareDays
(this.Owner.DisplayDateEndInternal, firstDayOfNextMonth) > -1);
1236
_previousButton.IsEnabled = (DateTimeHelper.
CompareDays
(this.Owner.DisplayDateStartInternal, firstDayOfMonth) < 0);
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (1)
391
if (!this._owner.SelectedDate.HasValue || DateTimeHelper.
CompareDays
(this._owner.SelectedDate.Value, date) != 0)