I have three controls on the left side of a gallery that I want to center within the gallery row as a group.
This sort of works:
Parent.TemplateHeight/2 - (Self.Height+lblApproverName.Height+lblApproverStatus.Height)/2
It works when I set the the TemplateSize to any value that is less than or equal to the math that works. For example, 100 just happens to perfectly work given the size of visible controls.
When that gallery row grows because a label and input that are made invisible and height=0 in certain conditions are visible for some users, the image and labels are in the wrong place.
It seems to always use the integer in the TemplateSize property rather than a dynamic height value based on the current gallery row.
Is there a Gallery property that represents the height of the specific row itself?

Report
All responses (
Answers (