blob: 63348117e5f24666559619e8738b7ef8151f9313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
using System.Globalization;
using System.Windows.Data;
namespace Tango.Touch.Converters
{
public class RotateTransformCentreConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
//value == actual width
return (double) value/2;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return Binding.DoNothing;
}
}
}
|