ListBox Leveraging Content Property

image_pdfimage_print


   
       

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

    <ListBox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
      <ListBoxItem Content="Item 1"/>
      <ListBoxItem Content="Item 2"/>
    </ListBox>

</Page>