I'm using a horizontal gallery to simulate a tabbed interface on my app, and it has 3 hardcoded items, such that:
Items =
[{ID:"General", DisplayName:"General"}, {ID:"D&C",DisplayName:"D&C"}, {ID:"Land", DisplayName:"Land/Midstream"}]I have display forms below with their visibility property as:
gal_tab_nav.Selected.Value.ID = "XXX"
Therefore, when no selection is made from the gallery, nothing shows up, which is not ideal.
I'm having trouble with what to set the Default to so that when the app loads, the General tab is selected. I've tried simply "General", and "[{ID:"General", DisplayName:"General"}]" (with and without square brackets), but I don't know the syntax for an item object when my values are hardcoded.
If the declarative syntax is going to be problematic, what would the best imperative syntax be, on say the screen.OnVisible event be?
Thanks in advance.