blob: 7923b1d3181cd218468d2162b5f1591123e555a2 (
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;
namespace Xamarin.Forms.Platform.WinPhone
{
public class HorizontalTextAlignmentConverter : System.Windows.Data.IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var textAlign = (TextAlignment)value;
return textAlign.ToNativeTextAlignment();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotSupportedException();
}
}
}
|