17 references to CompareYearMonth
PresentationFramework (17)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
191
if (owner.SelectedDate.HasValue && DateTimeHelper.
CompareYearMonth
(owner.SelectedDate.Value, owner.DisplayDateInternal) == 0)
src\Framework\System\Windows\Controls\Calendar.cs (5)
494
int i = DateTimeHelper.
CompareYearMonth
(c.DisplayDateInternal, DateTime.Today);
906
if (DateTimeHelper.
CompareYearMonth
(selectedDate, this.DisplayDateInternal) != 0)
1239
if (c.SelectedDate.HasValue && DateTimeHelper.
CompareYearMonth
(c.SelectedDate.Value, c.DisplayDateInternal) == 0)
1260
if (DateTimeHelper.
CompareYearMonth
(this.CurrentDate, this.DisplayDateInternal) != 0 && currentDayButton != null && !currentDayButton.IsInactive)
1388
if (DateTimeHelper.
CompareYearMonth
(DateTime.MaxValue, selectedDate.Value) > 0)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (8)
405
if (DateTimeHelper.
CompareYearMonth
(date, (DateTime)b.DataContext) == 0)
1050
bool isMinMonth = DateTimeHelper.
CompareYearMonth
(firstDayOfMonth, DateTime.MinValue) <= 0;
1051
bool isMaxMonth = DateTimeHelper.
CompareYearMonth
(firstDayOfMonth, DateTime.MaxValue) >= 0;
1105
DateTimeHelper.
CompareYearMonth
(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0);
1217
if (DateTimeHelper.
CompareYearMonth
(firstDayOfMonth, DateTime.MaxValue) == 0)
1309
childButton.HasSelectedDays = (DateTimeHelper.
CompareYearMonth
(day, this.Owner.DisplayDateInternal) == 0);
1311
if (DateTimeHelper.
CompareYearMonth
(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.
CompareYearMonth
(day, this.Owner.DisplayDateEndInternal) > 0)
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (3)
191
int monthDifference = DateTimeHelper.
CompareYearMonth
(item, this._owner.DisplayDateInternal);
230
int monthDifference = DateTimeHelper.
CompareYearMonth
(this[index], this._owner.DisplayDateInternal);
298
int monthDifference = DateTimeHelper.
CompareYearMonth
(item, this._owner.DisplayDateInternal);