equal
deleted
inserted
replaced
|
1 using System; |
|
2 using System.Collections.Generic; |
|
3 using System.Linq; |
|
4 using System.Text; |
|
5 using System.Windows.Data; |
|
6 |
|
7 namespace GestureControl |
|
8 { |
|
9 class DoubleHalfConverter : IValueConverter |
|
10 { |
|
11 #region IValueConverter Members |
|
12 |
|
13 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|
14 { |
|
15 return (double)((double)value / 1.5); |
|
16 } |
|
17 |
|
18 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|
19 { |
|
20 throw new NotImplementedException(); |
|
21 } |
|
22 |
|
23 #endregion |
|
24 } |
|
25 } |