title: WPF databinding to an other class
body: <p>I've created a WPF UI. The following code exists in <code>MainWindow.xaml.cs</code>:</p>
  
  <pre><code>namespace AWPFProject
  {
      public partial class MainWindow : Window
      {
          private readonly ServiceLogic serviceLogic;
  
          public MainWindow()
          {
              InitializeComponent();
              serviceLogic = new ServiceLogic ();
          }
      }
  }
  </code></pre>
  
  <p>Servicelogic is my central class. From there, methods or classes are called to handle stuff like database management.</p>
  
  <p>Now, that ServiceLogic class has the values I'd like to bind to.
  For example, I have a combobox where I can show my users. The XAML looks like this:</p>
  
  <pre><code>&lt;ListBox Height="100" HorizontalAlignment="Left" Margin="6,44,0,0" 
   Name="listBox_detected" VerticalAlignment="Top" Width="120" 
   ItemsSource="{Binding Path=ServiceLogic.Users}" /&gt;
  </code></pre>
  
  <p>When I run the application, the list remains emtpy. What else do I need to do to get that information in my list?</p>