cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msmith
Level 8

Gallery Item Background Color

I am trying to replicate the following color in this image and I can only change the entire gallery background color instead of just at the item level. The ultimate goal is to have the background color change based on the the selected city from a SharePoint drop down list.

 

2018-03-11_23-48-02.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Sienna
Level 10

Re: Gallery Item Background Color

Try to make a new app. Insert blank gallery and replace the Items property with

 

[1,2,3,4,5]

 

insert label into the gallery to display value

 

Now insert dropdown and change the dropdown Items to [1,2,3,4,5]

 

Now set Gallery TemplateFill

 

If(Value(Dropdown1.Selected.Value)=ThisItem.Value, Color.Red,Color.White)

 

Play with it and then implement it to your app by replacing data sources

View solution in original post

1 REPLY 1
Sienna
Level 10

Re: Gallery Item Background Color

Try to make a new app. Insert blank gallery and replace the Items property with

 

[1,2,3,4,5]

 

insert label into the gallery to display value

 

Now insert dropdown and change the dropdown Items to [1,2,3,4,5]

 

Now set Gallery TemplateFill

 

If(Value(Dropdown1.Selected.Value)=ThisItem.Value, Color.Red,Color.White)

 

Play with it and then implement it to your app by replacing data sources

View solution in original post

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,098)