I am asking how to bind more than one array into listbox. This is example how a did with one array and one textblock in listbox
string[] Name={Terry, John, Edvard};
for(int i=0;i<Name.Lenght, i++)
ListBoxName.Items.Add(Name[i]);
XAML:
<ListBox x:Name="ListBoxName">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Name=TextBlockName Text="{Binding}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Ok. This is not a problem. Problems starts if a want to add other array to other textblock in same listbox:
string[] Name={Terry, John, Edvard};
string[] id= {122, 234, 665};
//??
XAML:
<ListBox x:Name="ListBoxName">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Name="TextBlockName"/>
<TextBlock Name="TextBlockid"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
I am working on WindowsPhone 8 application. This is just example.
Thank you for any help.