public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var boolVal = (bool)value; if (boolVal) return even; else return odd; }