如何在 Windows Phone 8 中为应用程序显示两列列表?
项目.xaml.cs:
public async void Initi()
{
var itemsManagement = new ItemsManagement();
var itemList = await itemsManagement.GetAllItems();
var templist = from c in itemList.Data orderby c.Name, c.Id ascending select c;
NameList.ItemsSource = templist;
}
项目.xaml:
<ListBox x:Name="NameList">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Name}">
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
此解决方案在一列中显示我的列表,我希望在两列中显示