I've been working on a login page. Since I don't want to change around the root page, I decided to set the MainPage to the main page. Then push the login page as Modal to prevent user navigation away from the login page. However I designed the page using a normal PushAsync, which seems to treat the layout differently than when pushed as a Modal page.
Using RelativeLayout I center elements by placing them like:
Constraint txtX = Constraint.RelativeToParent(Parent => (Parent.Width / 2) - (welcomeText.Width / 2));
However when pushed as a Modal page, welcomeText.Width seems to return 0. This behavior persists across all types of views.