I've in my C# class:
- foreach (var item in horaires)
- {
- var Objet = item.Horraire.ToString();
- listBox.Items.Add(Objet);
- }
My data are great, but I would custom my ListBox with:
-
-
-
-
Name="item"
FontSize="36"
VerticalAlignment="Top"
TextAlignment="Left"
TextWrapping="Wrap"
Width="340"/>
I would like make listBox.Items.Add(Objet); in my TextBlock Name="item"
Thanks for your helps.
Valentin
Replies
Know the answer? Post it — somebody with the same question will find it here.