VPet/VPet.Solution/Converters/MaxConverter.cs

15 lines
312 B
C#
Raw Normal View History

2024-03-30 07:00:02 +00:00
namespace HKW.WPF.Converters;
2023-12-30 15:50:37 +00:00
public class MaxConverter : MultiValueConverterBase
2023-12-18 14:53:56 +00:00
{
2023-12-30 15:50:37 +00:00
public override object Convert(
2023-12-18 14:53:56 +00:00
object[] values,
Type targetType,
object parameter,
System.Globalization.CultureInfo culture
)
{
return values.Max(i => (double)i);
}
}