In my app I have a need to have a list that displays listitems with text and the list items also need to contain a hidden label to store an ID.
I have mapped the listitem text property to a value returned from a service, when I run the app with just this everything is fine. Then I put a label in as a child of the list item, mapped to label text to an ID field returned from the service, and made the label not visible. When I run the app now it does not show the text for the listitems, it is as if the hidden label is hiding the text.
So then I tried to put 2 labels in the list item, one to display the text and one to store the hidden ID. When I run this way the text label is display but the label is very poorly aligned within the list item, it is not centered vertically. To try and fix this one by one I added custom css of "vertical-align=middle" to each class involved in the list item, nothing would vertically center the label. I tried having the 2 labels in a grid as well and applying the css to the grid elements but that also failed.
I have lost several hours to what should be a very simple issue. So can you please tell me: