Microsoft has announced the public preview of the horizontal and vertical containers for canvas apps in Power Apps. These automate the reflow and resize controls without the need for complex expressions, effectively making the creation of canvas apps more seamless than ever before.
Along with the announcement of these new layouts is the reveal of three new screen templates now available for public preview. Pre-built with these responsive controls, these include Split-screen, Sidebar and Header, Main Section, Footer.
Each template is designed to provide a more intuitive and responsive experience for both end-users and app developers. So, how exactly do these new updates change the way we build canvas apps on Microsoft Power Apps? Read on to find out!
The two sections of this template divide your screen across the middle and occupy the same width at each side. On desktop, the screen is split from top to bottom, while on mobile the screens are positioned on top of one another.
This new template is perfect for displaying a detailed view of a certain item by narrowing the left side column to show a list and using the right column to display a detailed view of the selected item. It can also be used for content that is continuous, like a paragraph or a form that you can break down into two columns.
This split-view layout is also useful for when you want to show side-by-side content as shown in the example above. Make sure to capitalise on the pre-built responsiveness of this layout, which lessens the time it takes to design for multiple form factors.
The sidebar template provides users with three sections for their canvas apps. There is a fixed width sidebar on the left while the main section occupies most of the screen width. Placed over the main section is a fixed height header.
Using this template provides an advantage by having a fixed width sidebar for the left and the main body consisting of a fixed height header. The containers adjust to the screen size so that it is intuitive to use on all devices.
Use this template for apps that use some form of navigation. Before you start, make sure to use the new capability of the authoring preview which now lets you use “Window size” to resize your app before publishing to test your app on different form factors.
Header, Main Section, Footer Template
Perhaps the most familiar template in this list is the Header, Main Section, Footer Layout. The name is self-explanatory, and its design is simple. Despite that, the template proves to be helpful for when you have a fixed header and footer. Normally, the header is used for the heading and logo and some form of site navigation while the footer commonly contains quick links or contact information.
Using this template allows you to design consistent apps with ease. You can also play around with the layout of the main body as this is normally the area that changes from screen to screen. You can add smaller container in the main body and set each of their responsive properties to get the most out of this layout.
Through the horizontal and vertical container layout controls and these three new templates, you now have more freedom and control when it comes to building canvas apps on Power Apps. Head to our LinkedIn page and share your experience with these updates in the comments!