title: Simplest way to refresh ListBox with custom ItemsSource?
body: <p>I'm using ListBox with custom ItemsSource:</p>
  
  <pre><code>this.ListOfPersonsListBox.ItemsSource = (List&lt;Person&gt;)ListOfPersons.AllPersons;
  </code></pre>
  
  <p>ListOfPersons is a static class so it cannot implement INotifyPropertyChanged nor IObservableCollection.</p>
  
  <p>What's the simplest way to redraw my ListBox after updating the list? My current code works, but I would like to find a cleaner solution:</p>
  
  <pre><code>    private void SyncButton_Click(object sender, EventArgs e)
      {
          ListOfPersons.Sync();
          this.ListOfPersonsListBox.ItemsSource = null;
          this.ListOfPersonsListBox.ItemsSource = ListOfPersons.AllPersons;
      }
  </code></pre>