Skip to main content

PowerApps Pro Tips | How to Create Full Screen Image Pop-Outs

By March 3, 2017May 5th, 2017PowerApps, Pro Tips

There are times when a PowerApps user needs to see a large image at full screen. When that’s the case, you want to make sure the user experience is a good one for them. At Confluent, we use a standard process to create full-screen image pop-outs, which provides the best of both worlds.

Here’s how it works:

  1. Open PowerApps.
  2. Open a template app, like the Product Showcase.
  3. Go to the Compare Products screen.

    As an example, open up the Compare Products screen in PowerApps.

     

  4. Insert a new image media type onto the page. We will use this to appear when you click on one of the three Surface items on the page.
  5. Resize it so it is nearly the size of the entire screen.
  6. Add a button to the screen. Move it to the top right of the image, and change the name to X rather than button.

     

    Add a button to the screen, move it to the top right, and change the name to X.

     

  7. On the image, go to the property called image and insert this code: “ MyBigPic ” and then set the visible property to “ If(Len(Text(MyBigPicShow)) = 0,false,MyBigPicShow) ”
  8. On the button, add to the on select property: “ UpdateContext({MyBigPicShow:false}) ” and set the visible property to “ If(Len(Text(MyBigPicShow)) = 0,false,MyBigPicShow) ”
  9. On each picture, add the following to the on select: “ UpdateContext({MyBigPic: surface_book});UpdateContext({MyBigPicShow:true}) ” and be sure to change the name of each photo.

Now when you click on each photo, it will appear full screen. Then the user can choose to close it out using the X button.

Sometimes we will grey out the rest of the screen so the picture stands out. This feature uses variable to pass the image and the status between the three components.

[divider line_type=”Small Line” custom_height=”20″]

Need PowerApps Training?

[button color=”extra-color-2″ hover_text_color_override=”#fff” size=”large” url=”http://beconfluent.com/powerapps-solutions/” text=”Choose Your Plan” color_override=””]