title: How to set margin for inner controls of WrapPanel
body: <p>Here is an example that I'm using:</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication2.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525"&gt;
  &lt;StackPanel&gt;
      &lt;WrapPanel Orientation="Horizontal" TextElement.FontSize="30" TextElement.FontStyle="Italic"  &gt;
          &lt;Button Content="test1" Margin="10,0" Padding="10,10" /&gt;
          &lt;Button Content="test2" Margin="10,0" Padding="10,10" /&gt;
          &lt;Button Content="test3" Margin="10,0" Padding="10,10" /&gt;
          &lt;Button Content="test4" Margin="10,0" Padding="10,10" /&gt;
          &lt;Button Content="test5" Margin="10,0" Padding="10,10" /&gt;
      &lt;/WrapPanel&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p>As you can see, my wrap panel has several buttons.
  Each button has the same margin and padding.</p>
  
  <p>The question is, is there a way of setting margin and padding for wrap panel, so each element inside the wrap panel may use it values? </p>
  
  <p>For setting inner element's font, i may use "TextElement" attached property provider. Is there similar way how i can set margin and padding for inner controls?</p>
  
  <p>This make the code shorter and let me specify Margin and Padding only one time instead of setting it for each control in the panel.</p>
  
  <p>Thank you!</p>