Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
3,009 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
My grid height is set to auto and i would like to set the stackpanel height to 80% grid height
Thanks
I found a solution to use the screen size
'stp is the stackpanel
Dim bounds As New Rect
Dim scaleFactor As Double
Dim size1 As Size
bounds = ApplicationView.GetForCurrentView().VisibleBounds
scaleFactor = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel
size1 = New Size(bounds.Width * scaleFactor, bounds.Height * scaleFactor)
stp.Height = size1.Height * 0.8 / scaleFactor