Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Forms Editor TextAlignment

$
0
0

Hi there

I have an Editor in Xamarin Forms which I am trying to centre align the text for. This seems to be fine on a label using the HorizontalTextAlignment attribute but there is nothing on an Editor that seems to provide this kind of functionality.

I wondered whether I could do something like this but haven't got anywhere!

`<Editor TextColor="{StaticResource editorTextColor}" FontSize="14" WidthRequest="250" Completed="OnEditingDescriptionComplete" Keyboard="Text" BackgroundColor="{Binding GlobalBackgroundLight}" HeightRequest="100" x:Name="txtDescription" Text="{Binding MyDescriptionText}" Focused="TxtDescription_TextFocused" HorizontalOptions="Center" TextChanged="TxtDescription_TextChanged">
<Entry HorizontalTextAlignment="Center">

</Entry>

`

Alex


Viewing all articles
Browse latest Browse all 204402

Trending Articles