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

Blank Browse Gallery Record Seperator

I want to but a seperator between records in a Blank Browse Gallery.  Looking for a border around a record or if I could insert a line at the bottom of a record.

 

I used a label aand seit is a View and a black fill.  It works.

 

 

 

Thanks
Adam

2 ACCEPTED SOLUTIONS

Accepted Solutions
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Blank Browse Gallery Record Seperator

On a blank gallery, you can insert a Rectangle control (you'll find it inside the Icons group in the Insert tab in the ribbon), and set the following properties (assuming that the rectangle is called 'Rectangle1' and the gallery is called 'Gallery1':

Rectangle1.X: 2
Rectangle1.Y: Gallery1.TemplateHeight - Rectangle1.Height
Rectangle1.Width: Gallery1.TemplateWidth - 2 * Rectangle1.X
Rectangle1.Height: 2

This will add a separator line on the bottom of each item in the gallery. You can change the rectangle's color (change both the border color and fill color) to the one you prefer, or change the X and Height properties to change how the separator looks.

ACC
Level: Powered On

Re: Blank Browse Gallery Record Seperator

Thanks I inserted the rectangle and it worked.

8 REPLIES 8
DavidBarclay
Level: Powered On

Re: Blank Browse Gallery Record Seperator

Not sure if it helps, but in the gallery list of componts is "Seperator", you can set the border size, colour etc. on this?

ACC
Level: Powered On

Re: Blank Browse Gallery Record Seperator

I tried to set the gallery border, it didn't seperate individual records. 

PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Blank Browse Gallery Record Seperator

On a blank gallery, you can insert a Rectangle control (you'll find it inside the Icons group in the Insert tab in the ribbon), and set the following properties (assuming that the rectangle is called 'Rectangle1' and the gallery is called 'Gallery1':

Rectangle1.X: 2
Rectangle1.Y: Gallery1.TemplateHeight - Rectangle1.Height
Rectangle1.Width: Gallery1.TemplateWidth - 2 * Rectangle1.X
Rectangle1.Height: 2

This will add a separator line on the bottom of each item in the gallery. You can change the rectangle's color (change both the border color and fill color) to the one you prefer, or change the X and Height properties to change how the separator looks.

ACC
Level: Powered On

Re: Blank Browse Gallery Record Seperator

Thanks I inserted the rectangle and it worked.

Highlighted
AbulHassan
Level: Powered On

Re: Blank Browse Gallery Record Seperator

@CarlosFigueira It worked - thank you

TomBertie
Level: Powered On

Re: Blank Browse Gallery Record Seperator

But I don't think it works for galleries where the items increase in size.  I've got a label with auto-height enabled and they expand according to the amount of content.  The solution here will work if all of the gallery items are fixed at the template height but am not sure how it will work in my case.  Any ideas?


TomBertie
Level: Powered On

Re: Blank Browse Gallery Record Seperator

Solved it, by refering to the height of the autosizing item as well as the gallery and choosing the maximum; as follows (where Label15_1 is the autosizing label, Gallery3 is the Gallery in question and Rectangle2 is the dividing line made from a box):

 

Rectangle2.Height := Max(Label15_1.Height,Gallery3.TemplateHeight)-Rectangle2.Height

TomBertie
Level: Powered On

Re: Blank Browse Gallery Record Seperator

Sorry, that should have been Rectangle2.Y not Rectangle2.Height Smiley Frustrated

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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: 521 members 5,480 guests
Please welcome our newest community members: