Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

title Gallery Control Snippets Overview
description Comprehensive collection of Power Apps Gallery control patterns and snippets
category ui-controls
subcategory gallery
tags
gallery
controls
ui
overview
difficulty beginner
products
power-apps-canvas
author PowerAppsDarren
created 2024-01-01
updated 2024-01-01

Gallery Control Snippets

Table of Contents

This folder contains Power Fx snippets for the Gallery control in Power Apps Canvas applications. Gallery controls are essential for displaying collections of data in various visual formats.

Folder Structure

gallery/
├── layouts/          # Different gallery layout patterns
├── styling/          # Visual styling and appearance patterns
├── interactions/     # User interaction and behavior patterns
└── images/          # Screenshots and visual examples

Subcategories

Layouts (layouts/)

Gallery layout patterns for different data presentation needs:

Snippet Description Difficulty
Simple Gallery Basic vertical gallery with selection Beginner
Simple Elegant Elegant gallery with header and badges Intermediate
Gallery with Headings Multi-column gallery with header row Beginner
Responsive Gallery Responsive hero cards with auto wrap Intermediate
Modern Cards Modern card layout with status indicators Intermediate
Data Table Professional table with zebra striping Intermediate
Timeline Chronological event timeline Intermediate
Status Board Kanban-style task board Intermediate
Image Grid Responsive photo gallery grid Intermediate

Styling (styling/)

Visual styling patterns and techniques:

Snippet Description Difficulty
Alternating Row Colors Zebra striping using Mod function Intermediate
ASCII Checkerboard Checkerboard pattern with ASCII codes Intermediate

Interactions (interactions/)

User interaction and behavior patterns:

Snippet Description Difficulty
Nested Galleries Parent-child gallery relationships Intermediate

Visual Examples

Simple & Elegant Alternating Row Colors
Simple Elegant Alternating
Checkerboard Pattern
Checkerboard

Key Concepts

Gallery Properties

Common gallery properties you'll find in these snippets:

  • Items: Data source (collection, table, or inline data)
  • TemplateFill: Background color of each item
  • TemplateSize: Height/width of each item
  • TemplatePadding: Spacing between items
  • WrapCount: Number of columns for grid layouts
  • Layout: Vertical or Horizontal orientation

Selection Patterns

Most snippets include selection highlighting:

TemplateFill: =If(ThisItem.IsSelected, Color.LightBlue, Color.White)

Responsive Design

Many layouts use formulas for responsive behavior:

WrapCount: =Max(1, RoundDown((Parent.Width - 64) / 200, 0))

Getting Started

  1. Choose a layout that fits your needs
  2. Copy the YAML code from the snippet
  3. Paste into Power Apps Studio (Edit > Paste as YAML)
  4. Modify the Items property to use your data source
  5. Customize colors and styling as needed

Related Resources


History

Date Author Changes
2026-01-27 Migration Initial TOC and history section added