web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Increase one photo at ...
Power Apps
Answered

Increase one photo at a time

(0) ShareShare
ReportReport
Posted on by 221

Would anyone know how to enable the image to expand by clicking on each photo on this app?

 

I followed the instructions in a former post: (1) Solved: How do I make the image increase when I click on i... - Power Platform Community (microsoft.com) , however, that only took me so far.  I implemented what was found at this post, but this doesn't increase one image at a time (as you can see below).   I want to only increase one image at a time.

  
Thank you in advance!

 

Shaguar357_2-1676910309806.png

 

Shaguar357_1-1676910118470.png

 

Shaguar357_0-1676910096914.png

 

Categories:
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    personally what I would do, is just put an image control outside the gallery, on top of everythign, with a width set to app.width and a height set to app.height visibility set to expandedView and an image set to expandedItem.Image (replace .Image with whichever column name your image is in) then when clicking images in the gallery set the onselect to

    UpdateContext({expandedView:true, expandedItem:ThisItem})

    can then make the onselect of the blown up image

    UpdateContext({expandedView:false, expandedItem:Blank()})

    this will let you open images full screen, then close them again by tapping on them

  • Shaguar357 Profile Picture
    221 on at

    Hi @TheRobRush ,

     

    I hit "Accept Solution" to soon.  I appreciate you taking the time to reply.  Would you be able to break this down a bit more?  I'm fairly new to building apps.  I have two galleries.  I'm stuck at:  "visibility set to expanded view"  Did you mean "Visible"?  

    Shaguar357_0-1677010615384.png

  • TheRobRush Profile Picture
    11,128 Moderator on at

    So in my recommended method you would have a gallery, then an image outside of the gallery and above it like in the picture below

    TheRobRush_0-1677011626613.png

    Each image in my gallery has an OnSelect of this

    UpdateContext({expandedView:true, expandedItem:ThisItem});

     

    The Image OUTSIDE AND ABOVE the gallery has a Img property of

    expandedItem.ImgVal

     

    and an onselect of

    UpdateContext({expandedView:false, expandedItem:Blank()});

    this lets you open 1 image at a time, and make it look as large as you like, then close the expanded view again by clicking the image

     

    as an example, clicking the image of option 2 below

    TheRobRush_1-1677011921425.png

     

    gives me this

    TheRobRush_2-1677011953461.png

     

    then clicking this again will drop me back to the previous example image

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard