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
Solved! Go to Solution.
Hi @Vhutali ,
Like this?
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.
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 rectangle
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?
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.
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 @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.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
207 | |
192 | |
82 | |
57 | |
38 |
User | Count |
---|---|
299 | |
247 | |
119 | |
83 | |
55 |