title: What is the best way to set a distance between Grid's or StackPanel's elements in XAML?
body: <p>I have a Grid with some elements inside:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="Auto" /&gt;
          &lt;RowDefinition Height="Auto" /&gt;
          &lt;RowDefinition Height="Auto" /&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="Auto" /&gt;
          &lt;ColumnDefinition Width="*" /&gt;
      &lt;/Grid.ColumnDefinitions&gt;
  
      &lt;TextBlock Text="SomeText" Grid.Column="0" Grid.Row="0" /&gt;
      &lt;TextBox Grid.Column="1" Grid.Row="0" /&gt;
  
      &lt;TextBlock Text="SomeText" Grid.Column="0" Grid.Row="1" /&gt;
      &lt;TextBox Grid.Column="1" Grid.Row="1" /&gt;
  
      &lt;TextBlock Text="SomeText" Grid.Column="0" Grid.Row="2" /&gt;
      &lt;TextBox Grid.Column="1" Grid.Row="2" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>The problem is that it looks tightly:</p>
  
  <p><a href="http://i.stack.imgur.com/wr2BI.png" rel="nofollow">what i have</a></p>
  
  <p>Margin property solves this problem, but I should to set this property to each element inside a grid. It is a hard way.</p>
  
  <p>I want to obtain something like this setting margin property only once, but not for each element:</p>
  
  <p><a href="http://i.stack.imgur.com/gexsV.png" rel="nofollow">what i want to obtain</a></p>