17 references to CompareYearMonth
PresentationFramework (17)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
184if (owner.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(owner.SelectedDate.Value, owner.DisplayDateInternal) == 0)
System\Windows\Controls\Calendar.cs (5)
489int i = DateTimeHelper.CompareYearMonth(c.DisplayDateInternal, DateTime.Today); 901if (DateTimeHelper.CompareYearMonth(selectedDate, this.DisplayDateInternal) != 0) 1234if (c.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(c.SelectedDate.Value, c.DisplayDateInternal) == 0) 1255if (DateTimeHelper.CompareYearMonth(this.CurrentDate, this.DisplayDateInternal) != 0 && currentDayButton != null && !currentDayButton.IsInactive) 1381if (DateTimeHelper.CompareYearMonth(DateTime.MaxValue, selectedDate.Value) > 0)
System\Windows\Controls\Primitives\CalendarItem.cs (8)
399if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.DataContext) == 0) 1042bool isMinMonth = DateTimeHelper.CompareYearMonth(firstDayOfMonth, DateTime.MinValue) <= 0; 1043bool isMaxMonth = DateTimeHelper.CompareYearMonth(firstDayOfMonth, DateTime.MaxValue) >= 0; 1097DateTimeHelper.CompareYearMonth(dateToAdd.Value, this.Owner.DisplayDateInternal) != 0); 1209if (DateTimeHelper.CompareYearMonth(firstDayOfMonth, DateTime.MaxValue) == 0) 1300childButton.HasSelectedDays = (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateInternal) == 0); 1302if (DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateStartInternal) < 0 || DateTimeHelper.CompareYearMonth(day, this.Owner.DisplayDateEndInternal) > 0)
System\Windows\Controls\SelectedDatesCollection.cs (3)
186int monthDifference = DateTimeHelper.CompareYearMonth(item, this._owner.DisplayDateInternal); 225int monthDifference = DateTimeHelper.CompareYearMonth(this[index], this._owner.DisplayDateInternal); 293int monthDifference = DateTimeHelper.CompareYearMonth(item, this._owner.DisplayDateInternal);