Power Apps

Gallery in a Canvas Power App

Power App platform is a low-code or no-code platform developed by Microsoft to help business owners build apps for their businesses without having to learn app development concepts in detail. Using Power Apps platform, users can create three types of apps: canvas, model-driven, and portals. Each is suited to different scenarios and end users,

Canvas App

Canvas apps is a great option when you want to build an app from a blank canvas. You start by choosing the screen size: tablet or mobile, then you have a blank screen from which to build. You can interact with data in your app by adding data sources. Drag and drop various controls and add the desired functionality by writing Excel style formulas. Canvas apps provide you complete flexibility when building your apps.

Below is an example of a canvas app for Mountaineering & Camping equipment in tablet layout.canvas app

Learn to create a canvas app from your data.

Once your Canvas app is ready, the next thing you would want to do it add the Gallery.

A Gallery control displays the records from a data source, and each record can contain multiple types of data. Below are the important properties of a Gallery control.Gallery control displays

  1. Items property: This property determines the data source of the

Gallery.

  1. Layout Property: User can select different in-built layouts for a

Gallery.

  1. Controls/ Icons: Various information related to a record can be

displayed in a gallery with the help of different controls. Controls and icons are used to design the gallery and to link actions to be performed.

Inserting a Gallery

Below are the steps to insert and design a Gallery,

  1. Click on “Insert” tab.
  2. Click on “Gallery”.
  3. Select the Horizontal gallery design.Inserting a Gallery
  4. Select the SharePoint list (Product Line Images) as the data source of the Gallery.SharePoint list
  5. Resize and reposition the Gallery as required.
  6. Click on
  7. Select the Layout suitable for the app design.Layout
  8. Select the Image Control.

The gallery is a powerful control to display multiple rows of data in similar style. The gallery has a template where user needs to design the display for the first row and all subsequent rows will replicate the same template design. Once you select the gallery, you will see a pencil icon placed at the top left corner of the gallery. You need to click on this pencil icon to edit the gallery template. If you don’t click the pencil icon and ensure the gallery template is selected, you will not be able to insert any control inside the gallery.

  1. On the Property pane, select “Image”
  2. On the formula bar, write the formula to link the image to the image address saved in the SharePoint list.

Here we will write This Item.‘Image Address’ as ‘Image Address’ is the column where the link to the Images are saved in the SharePoint list and This Item refers to the first row of the gallery data.Image Address

You can delete the unrequired controls e.g.: the label below the Product category in the gallery. You may also change the label information to some other columns of the SharePoint list if you wish to display other information in the Gallery.

Conclusion:

Canvas app is a Power app which comes with a lot of customization options. The user can choose the screen size and various design elements according to the requirements of the design. One of such elements is the gallery. A gallery is used to show records from the data. This blog provides a step by step guide to adding gallery in a canvas app.

Are you looking for an instructor-led Power BI or Power Apps training in Australia? We provide classroom as well as online live trainings for the following courses:

Back to list

Leave a Reply

Your email address will not be published. Required fields are marked *