My code
Add("STRING");
public void Add(string menu)
{
DataContext = menu.ToString();
}
XAML code of Listbox
<ListBox x:Name="menubox" ItemsSource='{Binding}' Margin="0,5,0,0" Height="244" Width="240" Background="Silver" BorderThickness="0" >
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Foreground="Blue" FontWeight="Bold" Text="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
But it print like S T R I N G vertically.Each letter as one item. How can i print it as singe String lie 'STRING"