<Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}"> <ListBox x:Name="categoryListbox" Grid.Row="0" HorizontalAlignment="Stretch" SelectionChanged="categoryListbox_SelectionChanged" > <ListBox.ItemTemplate> <DataTemplate> <Grid x:Name="content" > <Grid.RowDefinitions> <RowDefinition Height="100"/> <RowDefinition Height=""/> </Grid.RowDefinitions> <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5,3,3,3"> <Image x:Name="img" Source="{Binding category_icon_link}" Tag="{Binding id}" Height="80" Width="80" Margin="3,0,5,0"/> <TextBlock x:Name="categoryName" Text="{Binding category_name}" VerticalAlignment="Center" FontSize="32"/> </StackPanel> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Grid>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)