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 = { bodyPlain, starUnstar } },
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?
Use the HorizontalOptions on the label. You can set it to End or EndAndExpand depending on what you are after.
Answers
Use the HorizontalOptions on the label. You can set it to End or EndAndExpand depending on what you are after.
Thank you very much...