Forum Xamarin.Forms

How to align Buttons, Labels to parent right?

I want to align Button control to the parent right of my layout. This is my code.

                                     Button starUnstar = new Button();
                                        new StackLayout
                                            Orientation = StackOrientation.Horizontal,
                                            Children =


Also, i want Label to be right aligned. Label has X-align property for text alignment. I gave TextAlignment.End, but its not displaying at right corner.

Basically, I am having above controls inside my ListView. Some controls I want to align at parent right of the item. How to achieve this?

Best Answer


  • SubhaMuralidharanSubhaMuralidharan USMember ✭✭

    Thank you very much...

  • mitramitra ASMember
    edited April 2016

Sign In or Register to comment.