title: How can I hold objects of different types in a collection in c#?
body: <p>I want to hold objects of different types in the same collection, but am unable to solve the problem.</p>
  
  <pre><code>public class SetupStep
  {
     public ObservableCollection&lt;/*Picture- or ParameterContaienr*/&gt; Containers {get; set;}
  }
  
  public class PictureContainer
  {
     public ObservableCollection&lt;Picture&gt; Content {get; set;}
  }
  
  public class ParameterContainer
  {
     public ObservableCollection&lt;Parameter&gt; Content {get; set;}
  }
  </code></pre>
  
  <p>I think that this would be solvable via interfaces and generics, but I have not found a working solution so far.
  In the end, the container collection is to be bound to an ItemsSource of a <code>ScatterView</code> in WPF, which should display the individual containers with their different contents.</p>