title: c# WPF CellTemplate / DataTemplate for an Image list / array
body: <p>What I have:</p>
  
  <p>my class:</p>
  
  <pre><code>public class MyImage
  {
      public String ImagePath { get; private set; }
      public String Name { get; private set; }
  
      // ...
  }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;DataTemplate x:Key="template_image"&gt;
          &lt;Image Source="{Binding Path=ImagePath}" Stretch="None" /&gt;
      &lt;/DataTemplate&gt;
      &lt;DataTemplate x:Key="template_name"&gt;
          &lt;TextBlock Text="{Binding Path=Name}" /&gt;
      &lt;/DataTemplate&gt;
  &lt;/Window.Resources&gt;
  
  
  &lt;ListView x:Name="gui_listview_graphics" Margin="75,0,0,0"&gt;
      &lt;ListView.View&gt;
          &lt;GridView&gt;
              &lt;GridViewColumn Header="Graphic" CellTemplate="{StaticResource template_image}" /&gt;
              &lt;GridViewColumn Header="Name" CellTemplate="{StaticResource template_name}" /&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>Works fine.</p>
  
  <p>Now what i now want..</p>
  
  <p>I need to display an Image-List instead of just one Image.</p>
  
  <p>my new class:</p>
  
  <pre><code>public class MyNewImage
  {
      public ObservableCollection&lt;String&gt; ImagePath { get; private set; }
      public String Name { get; private set; }
  
      // ...
  }
  </code></pre>
  
  <p>The DataTemplate should contain an Stackpanel which contains all images..</p>
  
  <p>Is it possible?</p>
  
  <p>If yes, how ..</p>
  
  <p>Thank you!</p>