cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Szabolcs
Level: Powered On

Gallery background color

Hi,

I have a gallery with several records. Each record has an Active/InActive flag. I would like to fill the background color based on this flag. How can I do it? How can I reference to the actual record's attribute within the Fill attribute of the Gallery object?

 

Now I have a workaround with a rectangle object on the background, where I can use the following formula:

If(Text(Status) = "InActive", RGBA(180, 180, 180, 50%), RGBA(0, 0, 0, 0))

It works well but it is not so frendly solution.

 

Regards,

Szabolcs

1 ACCEPTED SOLUTION

Accepted Solutions
Steelman70
Level 10

Re: Gallery background color

Hi, it is much better to use the TemplateFill property of the gallery in conjunction with ThisItem.

In your case, something like If(ThisItem.StatusFlag, Blue, Red)

 

CaptureTF.JPG

 

 

 

2 REPLIES 2
Steelman70
Level 10

Re: Gallery background color

Hi, it is much better to use the TemplateFill property of the gallery in conjunction with ThisItem.

In your case, something like If(ThisItem.StatusFlag, Blue, Red)

 

CaptureTF.JPG

 

 

 

Szabolcs
Level: Powered On

Re: Gallery background color

Hi Steelman70,

 

Thanks! I was searching for this!

 

Regards,

Szabolcs

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 238 members 5,167 guests
Please welcome our newest community members: