Код: Выделить всё
public class LanguageModel
{
public string? LanguageName { get; set; }
public string? Abbreviation { get; set; }
public string? Flag { get; set; }
public bool IsSupported { get; set; } = false;
}
Для этого я создал простой конвертер, вот такой
Код: Выделить всё
public class IsLanguageEmpty : IValueConverter
{
public object? Convert(object? value, Type targetType,
object? parameter, CultureInfo culture)
{
if (value is null)
return true;
return false;
}
public object? ConvertBack(object? value, Type targetType,
object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Код: Выделить всё
true
Подробнее здесь: https://stackoverflow.com/questions/790 ... el-in-maui