2017-11-14 11:37:06 +03:00
|
|
|
|
namespace Xamarin.Forms
|
|
|
|
|
{
|
|
|
|
|
static class TextAlignmentElement
|
|
|
|
|
{
|
|
|
|
|
public static readonly BindableProperty HorizontalTextAlignmentProperty =
|
2019-07-18 21:59:06 +03:00
|
|
|
|
BindableProperty.Create(nameof(ITextAlignmentElement.HorizontalTextAlignment), typeof(TextAlignment), typeof(ITextAlignmentElement), TextAlignment.Start,
|
2017-11-14 11:37:06 +03:00
|
|
|
|
propertyChanged: OnHorizontalTextAlignmentPropertyChanged);
|
|
|
|
|
|
2019-07-18 21:59:06 +03:00
|
|
|
|
public static readonly BindableProperty VerticalTextAlignmentProperty =
|
|
|
|
|
BindableProperty.Create(nameof(ITextAlignmentElement.VerticalTextAlignment), typeof(TextAlignment), typeof(ITextAlignmentElement), TextAlignment.Center);
|
|
|
|
|
|
2017-11-14 11:37:06 +03:00
|
|
|
|
static void OnHorizontalTextAlignmentPropertyChanged(BindableObject bindable, object oldValue, object newValue)
|
|
|
|
|
{
|
|
|
|
|
((ITextAlignmentElement)bindable).OnHorizontalTextAlignmentPropertyChanged((TextAlignment)oldValue, (TextAlignment)newValue);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|