title: Generatate layout (XAML) programmatically
body: <p>How can I generate layout (XAML) programmatically?</p>
  
  <p>Let say I have some kind of loop. And after each I want to generate this with the values I got:</p>
  
  <pre><code>                &lt;Grid Height="150" Name="grid1"&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition /&gt;
                          &lt;ColumnDefinition Width="200" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;Image Height="150" Name="image1" Stretch="Fill" Width="200" Grid.Column="1" Source="/Ilm;component/Images/testicon.png" HorizontalAlignment="Right" VerticalAlignment="Top" /&gt;
                      &lt;TextBlock Height="51" Name="textBlock1" Text="Paris" Margin="12,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="40" /&gt;
                      &lt;TextBlock FontSize="40" Height="51" HorizontalAlignment="Left" Margin="13,75,0,0" Name="textBlock2" Text="19°C" VerticalAlignment="Top" /&gt;
                  &lt;/Grid&gt;
  </code></pre>