IntToNegativeIntConverter.cs (626B)
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using Windows.UI.Xaml.Data; 7 8 namespace File360 9 { 10 class IntToNegativeIntConverter : IValueConverter 11 { 12 public object Convert(object value, Type targetType, object parameter, string language) 13 { 14 if (value == null) 15 return value; 16 17 return (-1 * (double)value); 18 } 19 20 public object ConvertBack(object value, Type targetType, object parameter, string language) 21 { 22 throw new NotImplementedException(); 23 } 24 } 25 } 26