Update ValueConverters.cs

This commit is contained in:
ClemensFischer 2024-05-31 00:07:38 +02:00
parent 8ccf65bfc9
commit ec13e13af7

View file

@ -42,14 +42,24 @@ namespace SampleApplication
public class MapHeadingToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
public object Convert(object value, Type targetType, object parameter, string language)
{
return (double)value != 0d;
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return Convert(value, targetType, parameter, "");
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotSupportedException();
return ConvertBack(value, targetType, parameter, "");
}
}
}