title: Listbox does not show items c# xaml
body: <p>i have written this in xaml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;ListBox x:Name="WorkersList"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel Orientation="Horizontal"&gt;
                          &lt;TextBlock Text="{Binding name}"&gt;&lt;/TextBlock&gt;
                          &lt;TextBlock Text="{Binding gehalt}"&gt;&lt;/TextBlock&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Then i wrote a c# class called "worker" and added the follwing code to the mainpage.cs:</p>
  
  <pre><code>    public sealed partial class MainPage : Page
  {
  
  
  
      public MainPage()
      {
          this.InitializeComponent();
          List&lt;Worker&gt; sourceworkerlist = new List&lt;Worker&gt;();
          sourceworkerlist.Add(new Worker { name = "Franz", gehalt = 200 });
          WorkersList.DataContext = sourceworkerlist;
      }
  }
  </code></pre>
  
  <p>I ran the program but the result is I dont see the listboxitem :( what did i do wrong? Thx for your answers!</p>