src/FingersDance.GestureControl/DoubleHalfConverter.cs
author PAMPHILE Jonathan <pamphile@efrei.fr>
Thu, 19 Nov 2009 18:05:52 +0100
changeset 215 d13dbcf861d7
parent 174 45c9e55fcf23
permissions -rw-r--r--
BOutton annotation, tag volume, chargement des annotations sauvegardées du projet dans le dictionnaire de données

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace GestureControl
{
    class DoubleHalfConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return (double)((double)value / 1.5);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}