public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { if (values.Count() == 2) { if (values[0] is null) { return(string.Empty); } string EnumString; try { EnumString = Enum.GetName(values[0].GetType(), values[0]); return(TranslationFor("GameState." + EnumString.ToUpper()).Translated); } catch { return(string.Empty); } } return(""); }