title: Stretch my buttons in a TopAppBar
body: <p>I am developing a universal application in Visual Studio 2015 Community, but I have a problem in stretching my 3 buttons when I test my application on local PC or the Windows phone emulator, this is what I get with my code:</p>
  
  <pre><code>&lt;CommandBar Height="51" &gt;
          &lt;CommandBar.Content&gt;
              &lt;Grid&gt;
                  &lt;StackPanel&gt;
                      &lt;Image x:Name="image1" Margin="41,10,-168,-50" Source="images/name.png" RenderTransformOrigin="0.487,0.82"/&gt;
                      &lt;Image x:Name="image" Margin="1,0,-40,-50" Source="images/icon.png"/&gt;
                  &lt;/StackPanel&gt;
                  &lt;StackPanel&gt;
                      &lt;Button  Height="49" Margin="0,0,-244,0" Width="35" HorizontalAlignment="Right" VerticalAlignment="Stretch"&gt;
                          &lt;Button.Content&gt;
                              &lt;Image Source="images/home.png" Margin="-9,0.333,-9,-0.667"/&gt;
                          &lt;/Button.Content&gt;
                      &lt;/Button&gt;
                  &lt;/StackPanel&gt;
                  &lt;StackPanel&gt;
                      &lt;Button  Height="49" Margin="0,0,-280,0" Width="35" HorizontalAlignment="Right" VerticalAlignment="Stretch"&gt;
                          &lt;Image Source="images/search.png" Margin="-9,0.333,-9,-0.667"/&gt;
                      &lt;/Button&gt;
                  &lt;/StackPanel&gt;
                  &lt;StackPanel&gt;
                      &lt;Button  Height="49" Margin="0,0,-315,0" Width="35" HorizontalAlignment="Right" VerticalAlignment="Stretch"&gt;
                          &lt;Image Source="images/profil.png" Margin="-9,0.333,-9,-0.667"/&gt;
                      &lt;/Button&gt;
                  &lt;/StackPanel&gt;
              &lt;/Grid&gt;
  
          &lt;/CommandBar.Content&gt;
  </code></pre>
  
  <p>This what I want to get:
  <a href="https://i.stack.imgur.com/lonQi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lonQi.png" alt="enter image description here"></a></p>