Added WPF tester

This commit is contained in:
2025-07-23 20:34:40 +02:00
parent 4b226f9601
commit 58b5d08338
17 changed files with 690 additions and 148 deletions

View File

@@ -0,0 +1,22 @@
using System.Globalization;
using System.Windows.Data;
namespace EonaCat.VolumeMixer.Tester.WPF.Converter
{
public class VolumeToPercentageConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is float volume)
{
return $"{Math.Round(volume * 100)}%";
}
return "0%";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}