mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-17 21:19:14 +08:00
20 lines
495 B
C#
20 lines
495 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace BetterGenshinImpact.View.Controls.Adorners;
|
|
|
|
public class DoubleFormatConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
double d = (double)value;
|
|
return Math.Round(d);
|
|
}
|
|
|
|
public object? ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return default;
|
|
}
|
|
}
|