Hello everyone,
I have a list of places where I am showing all of the items in the places database. When you click on a specific place listing I want it to show just the details of that specific place listing. After trying what I know from using JSON in web design I can’t figure it out. The code is below. And advice is highly appreciated.
<Page ux:Name="places">
<Text FontSize="36" Width="70%" Font="Medium">Places</Text>
<ScrollView Margin="10,140,10,0">
<StackPanel Alignment="Top">
<Panel Height="100" Width="100"/>
<Each Items="{data.places}">
<Panel Margin="0,28,0,40" Height="200" Alignment="VerticalCenter">
<DropShadow Size="6" Distance="3" Color="#000"/>
<Panel>
<Text LineSpacing="12" TextWrapping="Wrap" Margin="0,5,0,0">
<Text Value="{title}" />
<Text Value="{address}" Margin="0,20,0,0" FontSize="12" />
<Text Value="{deal}" Margin="0,35,0,0" FontSize="14"/>
</Text>
</Panel>
<Clicked>
<Set place_panel.Visibility="Visible"/>
<BringToFront Target="place_panel" />
</Clicked>
<Image Url="{image}" StretchMode="Fill"/>
</Panel>
</Each>
</StackPanel>
</ScrollView>
<Panel ux:Name="place_panel" Width="100%" Height="100%" Visibility="Hidden" Background="#E8E8E8" Margin="0,160,0,0">
<Text TextColor="#000">
Close Panel
<Clicked>
<Set place_panel.Visibility="Hidden"/>
</Clicked>
</Text>
<Each Items="{data.places}">
<Text Value="{title}" />
<Text Value="{address}" Margin="0,20,0,0" FontSize="12" />
<Text Value="{deal}" Margin="0,35,0,0" FontSize="14"/>
</Each>
<DropShadow Angle="270" Distance="12" Size="10" Spread="0.3" />
</Panel>
</Page>