Unable to understand horizontalAlignment and verticalAlignment properties of StackLayout.!


Hi All,

I am unable to understand the properties verticalAlignment and horizontalAlignment of StackLayout. I would like to know when they will work and on which UI elements they will work !?
I have used them and sometimes they are working, sometimes they are not working. IDK why .!!!
can anyone explain me these properties behaviour.



Hi, check this page:



thanks a lot @christian.ventura, this article cleared a lot of doubts I had.
I thought the properties horizontalAlignment and verticalAlignment are the very own properties of StackLayout and don’t work with other layouts. now I have more control over the layouts :slight_smile: