These are simple PowerFX formulas every PowerApps Developer needs to know
As we build responsive PowerApps and static layout apps that contain more controls, it will become more convenient (or even necessary) to section your app using containers and position controls relative to a parent control rather than the screen.
By organizing your controls into a hierarchical structure and positioning them dynamically, you can make your canvas apps easier to maintain.
Here are the key formulas:
• Center Align Horizontally: X = (Parent.Width - Self.Width)/2
• Center Align Vertically: Y = (Parent.Height - Self.Height)/2
• Right Align: X = Parent.Width - Self.Width
• Bottom Align: Y = Parent.Height - Self.Height
• Right Align with padding: X = Parent.Width - Self.Width - 20
• Bottom Align with padding: Y = Parent.Height - Self.Height - 20
We can combine these formulas for our desired layout.