mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
27 lines
553 B
C#
27 lines
553 B
C#
using System.Windows.Data;
|
|
|
|
namespace VPet.House.Converters;
|
|
|
|
public class MaxConverter : IMultiValueConverter
|
|
{
|
|
public object Convert(
|
|
object[] values,
|
|
Type targetType,
|
|
object parameter,
|
|
System.Globalization.CultureInfo culture
|
|
)
|
|
{
|
|
return values.Max(i => (double)i);
|
|
}
|
|
|
|
public object[] ConvertBack(
|
|
object value,
|
|
Type[] targetTypes,
|
|
object parameter,
|
|
System.Globalization.CultureInfo culture
|
|
)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|