title: Creating multiple UI Elements dynamically during runtime - C# WPF
body: <p>I'm fairly new to C# and WPF, but I started building an application which should have a function of listing Items with a few details. Currently it looks like </p>
  
  <p><a href="https://i.stack.imgur.com/msYXZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/msYXZ.png" alt=""></a></p>
  
  <p>The data for these 'items' (one item is multiple labels enclosed in a border (at a later time I would like to add a picture as well)) is loaded in through a REST Service and I don't know how many items will be responded. Now I have the problem of not beeing able to create the labels statically within the xaml because of the variating number of items recieved.</p>
  
  <p>My question here is, how can I create multiple labels (as well as a border and an image) programmatically, align them correctly in the window and address the labels to fill them with data?</p>
  
  <p>Thanks a lot for your help!</p>