18 строки
472 B
C#
18 строки
472 B
C#
using System;
|
|
|
|
namespace Xamarin.Forms.Platform.UWP
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
} |