I have a gallery with rows connected to a data source. I would like to change the template fill color of an individual row to green when a button in that row is pressed or the item is selected. I have been able to do this, but it will only change one row at a time to green, and the others remain the default blue color. Once a row has been selected and turns green, I want it to stay green regardless of selecting another row. Any ideas on this? My code so far:
TemplateFill property for the gallery:
If (ThisItem.IsSelected, RGBA(67, 245, 39, .8),
If(!ThisItem.IsSelected, RGBA(39, 174, 245, .8), RGBA(67, 245, 39, .8)
)
)
I also have a button that does some other actions (in each row), so could add actions to the OnSelect property of the button as needed.