src/GestureControl/DoubleHalfConverter.cs
author ARIAS Santiago
Mon, 26 Oct 2009 08:36:15 +0100
changeset 173 e99fe78cd168
permissions -rw-r--r--
Gesture Control Integration in the Control Player
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
173
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     1
using System;
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     2
using System.Collections.Generic;
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     3
using System.Linq;
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     4
using System.Text;
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     5
using System.Windows.Data;
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     6
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     7
namespace GestureControl
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     8
{
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
     9
    class DoubleHalfConverter : IValueConverter
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    10
    {
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    11
        #region IValueConverter Members
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    12
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    13
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    14
        {
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    15
            return (double)((double)value / 1.5);
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    16
        }
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    17
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    18
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    19
        {
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    20
            throw new NotImplementedException();
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    21
        }
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    22
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    23
        #endregion
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    24
    }
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff changeset
    25
}