Types of tables in Windows Phone 7

Does Windows Phone 7 have something like an iPhone UITableView?

[Basically, I port the iOS app where table views work very well.]

+4
source share
2 answers

My guess is that the closest match is the Grid control, which allows you to define rows and columns and add content to the grid cells. You can find the MSDN "How to Create a Grid Element" page.

+2
source

you can create something similar to a table view using the XAML code below.

  <ListBox > <ListBoxItem> <StackPanel Orientation="Horizontal" > <Border BorderThickness="3" BorderBrush="#A5FFFFFF" Width="80" Margin="0,20,0,20" Height="60"> <Image Source="{Binding ImageUrl, Mode=OneWay}" VerticalAlignment="Stretch" Margin="0,0,0,0" Width="80" Height="60" Stretch="Fill" /> </Border> <TextBlock TextWrapping="Wrap" Text="Foobar" FontSize="40" FontWeight="Normal" VerticalAlignment="Center" Margin="30,0,0,0" /> </StackPanel> </ListBoxItem> <ListBoxItem> <StackPanel Orientation="Horizontal" > <Border BorderThickness="3" BorderBrush="#A5FFFFFF" Width="80" Margin="0,20,0,20" Height="60"> <Image Source="{Binding ImageUrl, Mode=OneWay}" VerticalAlignment="Stretch" Margin="0,0,0,0" Width="80" Height="60" Stretch="Fill" /> </Border> <TextBlock TextWrapping="Wrap" Text="Foobar" FontSize="40" FontWeight="Normal" VerticalAlignment="Center" Margin="30,0,0,0" /> </StackPanel> </ListBoxItem> </ListBox> 

In the above example, a table view with two elements will be created. If you want to add a Border to separate between each table.

Hope this helps.

+4
source

Source: https://habr.com/ru/post/1340570/


All Articles