Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6EcYq5Lf4/uyIPVNxV8xVY
Power Apps - Building Power Apps
Suggested answer

components within a gallery

Like (1) ShareShare
ReportReport
Posted on 12 Dec 2024 22:07:26 by 658
I've heard conflicting things. Can you add a component within a gallery. I've heard yes and no as long as you put it inside a container. I haven't got this to work, so what's the latest answer to this...
Categories:
  • FCosta Profile Picture
    4 on 24 Feb 2025 at 20:51:40
    components within a gallery
    @Garima_PowerPlatform, buttons, labels, or input fields are not Components, they are Controls.
    As replied by the OP, it is a known limitation that currently Components cannot be used inside of Gallery controls.
  • Suggested answer
    sasrsc Profile Picture
    658 on 13 Dec 2024 at 01:42:16
    components within a gallery
    I found my answer...
    Canvas component overview - Power Apps | Microsoft Learn
    • You can't insert a component into a gallery or a form (including SharePoint form).

    Bummer...
  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on 13 Dec 2024 at 00:38:56
    components within a gallery
    Hi,

    In PowerApps, specifically in Canvas apps, you can add components within a gallery, but there are some important considerations and limitations:

    Yes, with limitations: You can add components inside a gallery, but they must be placed within a container (e.g., a Frame, Rectangle, or Custom Card) that handles the layout and interacts correctly with the gallery data context.

    Example:

    1. Add a Rectangle or Frame to your gallery.
    2. Inside the container, add components like a button, label, or input field.
    3. Bind these components to the ThisItem property of the gallery (e.g., ThisItem.ColumnName).
    Gallery:
      Items: YourGallery
      `Rectangle` inside the gallery:
        Fill: White
        Width: 100
        Height: 100
        `Button` inside the rectangle:
          Text: ThisItem.ColumnName
          OnSelect: Navigate(ScreenName, ScreenTransition)

    Please Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 98 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 73

#3
stampcoin Profile Picture

stampcoin 50

Overall leaderboard
Loading started