cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vhutali
Microsoft
Microsoft

indicate the selected image

I have 5 images and they are buttons. when the button is pressed, it displays details related to the image. I want the pressed image to be highlighted to show it's been selected. I tried doing something on the borders, but failed. im also thinking of putting a rectangle over the image so that it can pop up only when the image is selected, but I don't know how to achieve that. The images are not in a gallery so I cannot use template fill

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Vhutali ,

Like this?

IconShadow.gif

 

 

 

 

 

OnSelect of the Icons (1-4)

UpdateContext({vVis:1})

Visible of the Rectangles (1-4)

vVis=1

 

Please click Accept as solution 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 Thumbs Up.

 

View solution in original post

10 REPLIES 10
WarrenBelz
Super User III
Super User III

Hi @Vhutali ,

You could put a rectangle behind the picture with the overlap required showing for a border and then put on the Visible 

ThisItem.IsSelected

so when the item is selected, the outline would be visible.

 

Please click Accept as solution 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 Thumbs Up.

 

thanks Warren.

 

I managed to put the rectangle behind the picture. how do I make it appear only when selected? "Thisitem.isselected" is not working.

 

if I am to apply PressedColor, what fomular do I use?

Hi @Vhutali ,

As below - ThisItem.IsSelected (note character case) is the Visible property of the rectangleShowShadow.gif

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please click Accept as solution 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 Thumbs Up.

Hi My images are not in a Gallery,they are just like icons

Hi @Vhutali ,

Like this?

IconShadow.gif

 

 

 

 

 

OnSelect of the Icons (1-4)

UpdateContext({vVis:1})

Visible of the Rectangles (1-4)

vVis=1

 

Please click Accept as solution 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 Thumbs Up.

 

View solution in original post

Hi @Vhutali ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution 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 Thumbs Up.

Hi warren 

 

Not yet, I need something like what is on my attached picture. the rectangle has to change color when the pic is selected

ow.PNG

 

Hi @Vhutali ,

My post with the icons does that - am I missing something in your requirements?

 

Please click Accept as solution 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 Thumbs Up.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (27,082)