[Solved] VS Blend UWP 3 annoying elements keep getting a vertical alignment

Updated on November 16, 2016 in [A] Other Answers
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
5 on November 16, 2016

Hi guys,

I hope someone here knows a solution to my problem. I am creating a UWP app with multiple elements (duh), and I am now at the point of creating the responsive design to actually make in “Universal”. But some of these elements are proving to be a pain in the butt. Basically I want these elements to have a static position meaning that they don’t move when screen size changes.

This works great as long as the VerticalAlignment property is set to Top. However (and here comes the plot twist) every time I change the margins of these three elements, that are basically at the bottom of the page, keep getting there VerticalAlignment property set to “Bottom” meaning they will move along with the bottom which it shouldn’t do since the positioning will get messed up if it does.

The weird thing here is that I have three other elements that (should) have the exact same positions as these annoying elements, but they do indeed work as intended.

A part of the XAML for an example:

 

RECOMMENDED: Do not! open this spoiler it’s 1244 lines of xaml code and it was a pain to post it and it might be a pain to even open it.
If for some reason you want to dig trough the entire XAML code be my guest:

Click to Expand

  • Liked by
Reply
1 on November 16, 2016

I think what you’re looking for is a canvas. https://msdn.microsoft.com/en-us/windows/uwp/layout/layout-panels

Guru
on November 16, 2016

This indeed seems to have fixed my problem. Thank you Dion.

Show more replies
  • Liked by
Reply
Cancel