Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在WindowsPhone7开发中,UITableView的等效性是什么?_C#_.net_Ios_Windows Phone 7 - Fatal编程技术网

C# 在WindowsPhone7开发中,UITableView的等效性是什么?

C# 在WindowsPhone7开发中,UITableView的等效性是什么?,c#,.net,ios,windows-phone-7,C#,.net,Ios,Windows Phone 7,在WindowsPhone7开发中,UITableView的等价物是什么 我试图制作一个自定义UITableViewCell,左边是一个图像,右边是自定义UILabels。显然,行的数量是基于值数组的计数 有人能给我一些建议,说明我应该如何在Windows Phone 7.1上获得相同的效果吗?对于任何列表类型的UI元素,您都希望使用带有自定义数据模板的列表框 XAML更多的是灵活性,所以您没有专门的UI元素,但是您可以定制一些基本控件,使其看起来与您想要的完全一样 您可能希望在数据模板中有一个

在WindowsPhone7开发中,
UITableView
的等价物是什么

我试图制作一个自定义
UITableViewCell
,左边是一个图像,右边是自定义
UILabel
s。显然,行的数量是基于值数组的计数

有人能给我一些建议,说明我应该如何在Windows Phone 7.1上获得相同的效果吗?

对于任何列表类型的UI元素,您都希望使用带有自定义数据模板的
列表框

XAML更多的是灵活性,所以您没有专门的UI元素,但是您可以定制一些基本控件,使其看起来与您想要的完全一样


您可能希望在
数据模板中有一个
网格

有两个控件:
列表框
用于普通列表,而
长列表选择器
用于分组列表(如在联系人中)

在这两种情况下,您都需要设置
ItemTemplate
,例如:

<ListBox>
  <ListBox.ItemTemplate>
    <DataTemplate>
      <StackPanel Orientation="Horisontal">
        <Image Source="img.png"/>
        <TextBlock Text="Label"/>  
      </StackPanel>
    </DataTemplate>
  </ListBox.ItemTemplate>
</ListBox>

我能想到常见的
列表框