using System;
using System.Globalization;
using System.Windows.Data;
namespace SourceGit.Converters {
///
/// Convert percent to double.
///
public class PercentToDouble : IValueConverter {
///
/// Percentage.
///
public double Percent { get; set; }
///
/// Implement IValueConverter.Convert
///
///
///
///
///
///
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
return (double)value * Percent;
}
///
/// Implement IValueConverter.ConvertBack
///
///
///
///
///
///
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
throw new NotImplementedException();
}
}
}