Forum Cross Platform with Xamarin

Text alignment right on Entry control for android.

SanjayTejaniSanjayTejani USMember ✭✭✭
edited January 2016 in Cross Platform with Xamarin

I am beginner in xamarin.
How to i set text alignment right, i have tried below code but didn't work.

using System;

using Xamarin.Forms;
using PracticeApp;
using PracticeApp.Droid;
using Xamarin.Forms.Platform.Android;

[assembly:ExportRenderer(typeof(MyEntry),typeof (CustomEntryRenderer))]

namespace PracticeApp.Droid
public class CustomEntryRenderer : EntryRenderer
protected override void OnElementChanged (ElementChangedEventArgs e)
base.OnElementChanged (e);
Control.TextAlignment = Android.Views.TextAlignment.TextEnd;

Best Answer


Sign In or Register to comment.