title: Change grid-settings programmatically
body: <p>I have a XAML-code that looks like this</p>
  
  <pre><code>&lt;Grid&gt;
     &lt;Grid.RowDefinitions&gt;
        &lt;RowDefinition Height="140"/&gt;
        &lt;RowDefinition Height="*"/&gt;
     &lt;/Grid.RowDefinitions&gt;
     &lt;Grid.ColumnDefinitions&gt;
        &lt;ColumnDefinition x:Name="primaryColumn" Width="40*"/&gt;
        &lt;ColumnDefinition Width="50*"/&gt;
     &lt;/Grid.ColumnDefinitions&gt;
     &lt;Grid x:Name="titlepanel"&gt;
        ...
     &lt;/Grid&gt;
     &lt;Grid x:Name="leftgrid" Grid.Row="1"&gt;
        ...
     &lt;/Grid&gt;
     &lt;Grid x:Name="rightgrid" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2"&gt;
        ...
     &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Is it possible in C# to change the rightgrid so it looks like this</p>
  
  <pre><code>&lt;Grid x:Name="rightgrid" Grid.Row="1" Grid.Column="1"&gt;
     ...
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I cannot just set in the XAML-code as there are situations, where I need that? <br />
  Or do I have to create a new page?</p>