mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
19 lines
363 B
C#
19 lines
363 B
C#
using System.Windows.Data;
|
|
|
|
using System.Windows;
|
|
|
|
namespace HKW.WPF.Converters;
|
|
|
|
public class MaxConverter : MultiValueConverterBase
|
|
{
|
|
public override object Convert(
|
|
object[] values,
|
|
Type targetType,
|
|
object parameter,
|
|
System.Globalization.CultureInfo culture
|
|
)
|
|
{
|
|
return values.Max(i => (double)i);
|
|
}
|
|
}
|