using System; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif { public class HorizontalTextAlignmentConverter : Windows.UI.Xaml.Data.IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { var textAlign = (TextAlignment)value; return textAlign.ToNativeTextAlignment(); } public object ConvertBack(object value, Type targetType, object parameter, string language) { throw new NotSupportedException(); } } }