HorizontalTextAlignment property not working when set the entry as an IsPassword field

MehdiFathiMehdiFathi USMember ✭✭
edited July 2017 in General

HorizontalTextAlignment seems not working when I use the IsPassword property of an Entry, am I using it correctly?

Answers

  • MounesSahibMounesSahib USMember ✭✭

    Mehdi,
    Your Code is working fine with the built-in Entry Element , i may guess the problem is with the EntryStyle in the static resources...

      <StackLayout>
                <Entry
                    HorizontalOptions="FillAndExpand"
                    HorizontalTextAlignment="End"
                    IsPassword="True"
                    Placeholder="رمز العبور"
                    VerticalOptions="FillAndExpand" />
            </StackLayout>
    

  • MehdiFathiMehdiFathi USMember ✭✭

    @MounesSahib said:
    Mehdi,
    Your Code is working fine with the built-in Entry Element , i may guess the problem is with the EntryStyle in the static resources...

      <StackLayout>
                <Entry
                    HorizontalOptions="FillAndExpand"
                    HorizontalTextAlignment="End"
                    IsPassword="True"
                    Placeholder="رمز العبور"
                    VerticalOptions="FillAndExpand" />
            </StackLayout>
    

    
    

    Hi @MounesSahib
    problem was the Gravity property in my button renderer

    Thank you for your Answer ;D

  • MounesSahibMounesSahib USMember ✭✭

    You Welcome @MehdiFathi..
    Question : are you using the same property for all platforms ?? i guess the Gravity property is related to Andriod.

  • MehdiFathiMehdiFathi USMember ✭✭

    @MounesSahib its my android custom renderer, I'm using another customrenderer for IOS.

  • MounesSahibMounesSahib USMember ✭✭

    Now its clear thanks @MehdiFathi

Sign In or Register to comment.