public override object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (values[0] == null) return false; int currentlyViewedMonth = (int)values[0]; int otherMonth = (int)values[1]; return currentlyViewedMonth == otherMonth; } }