12 references to CompareDays
PresentationFramework (12)
System\Windows\Controls\Calendar.cs (1)
863if (DateTimeHelper.CompareDays((DateTime)b.DataContext, day) == 0)
System\Windows\Controls\DateTimeHelper.cs (2)
183if (CompareDays(date, start) > -1 && CompareDays(date, end) < 1)
System\Windows\Controls\Primitives\CalendarItem.cs (8)
384if (DateTimeHelper.CompareDays(date, (DateTime)b.DataContext) == 0) 1085if (DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareDays(dateToAdd.Value, this.Owner.DisplayDateEndInternal) > 0) 1105if (DateTimeHelper.CompareDays(dateToAdd.Value, DateTime.Today) == 0) 1123isSelected |= (DateTimeHelper.CompareDays(dateToAdd.Value, item) == 0); 1154int 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)
390if (!this._owner.SelectedDate.HasValue || DateTimeHelper.CompareDays(this._owner.SelectedDate.Value, date) != 0)