Unable to understand horizontalAlignment and verticalAlignment properties of StackLayout.!


#1

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.

Thanks.


#2

Hi, check this page:

https://developer.telerik.com/featured/demystifying-nativescript-layouts/


#3

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: