Hello,

I've in my C# class:
  1. foreach (var item in horaires)
  2. {
  3. var Objet = item.Horraire.ToString();
  4. listBox.Items.Add(Objet);
  5. }
And in my XAML:


My data are great, but I would custom my ListBox with:
  1.         
  2.                 
  3.                         
  4.                                 
  5. Name="item"

  6. FontSize="36"

  7. VerticalAlignment="Top"

  8. TextAlignment="Left"

  9. TextWrapping="Wrap"

  10. Width="340"/>

But With, my data don't show. So, How to display my data with this model?
I would like make listBox.Items.Add(Objet); in my TextBlock Name="item"

Thanks for your helps.
Valentin