VPet/VPet.Solution/Converters/MaxConverter.cs

19 lines
363 B
C#
Raw Normal View History

2023-12-18 14:53:56 +00:00
using System.Windows.Data;
2023-12-30 15:50:37 +00:00
using System.Windows;
2023-12-18 14:53:56 +00:00
2023-12-30 15:50:37 +00:00
namespace HKW.WPF.Converters;
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);
}
}