diff --git a/Ink Canvas/Converters/PositionConverters.cs b/Ink Canvas/Converters/PositionConverters.cs deleted file mode 100644 index d97093e4..00000000 --- a/Ink Canvas/Converters/PositionConverters.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Globalization; -using System.Windows.Data; - -namespace Ink_Canvas.Converters -{ - /// - /// 位置计算转换器 - /// - public class PositionConverters - { - /// - /// 减法转换器 - /// - public class SubtractConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - if (value is double baseValue && parameter is string paramStr) - { - if (double.TryParse(paramStr, out double subtractValue)) - { - return baseValue - subtractValue; - } - } - return value; - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - throw new NotImplementedException(); - } - } - } -}