I have this ListBox
:
<ListBox Name="lbAFiles" HorizontalAlignment="Left" Height="100" Margin="318,61,0,0"
VerticalAlignment="Top" Width="481">
<ListBoxItem>
<TextBlock>Line1<LineBreak/>Line2</TextBlock>
</ListBoxItem>
</ListBox>
I have my own object
with several properties that i want to fill inside my ListBox
instead of the line:
<TextBlock>Line1<LineBreak/>Line2</TextBlock>
How can i do that with code behind ?