Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Height of Stack Layout is always assigning 0

$
0
0

Hi,

I have a Vertical stack layout which i am adding elements to. I want to get the height of the stack layout but it is alway assigning the value of 0.

When I inspect in Visual Studio, the height is definitly showing as non-zero but it doesn't get assigned to my variable.

double chats_Height = view_Chat.Height;

chats_Height is always 0, but view_Chat.Height has a non-zero value.

very strangee as i've never seen this in C# before,

I have the stacklayout inside a scrollview. i want the height of the stacklayout so i can scroll to the end of the scroll view programmatically.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>