I have been facing this weird issue since I started with UWP. Whenever I position my elements using XAML (aligning in the centre or top-left top-right, basically using only code), the elements are positioned exactly as shown in the design view no matter what device I run the app on, my phone or my PC (both Win10).
However, if I drag the elements to someplace I want on the canvas when I deploy the app on the device, the layout is completely messed up. Sometimes to the point that some element goes out of the viewport!
Long story short, when I drag and drop elements upon deploying the app the are not the way I set them in VS. But when I position them using code (XAML) they're just fine.
How do I fix this so that dragging and dropping elements doesn't screw up my app layout?