title: XAML UWP Adaptive Buttons
body: <p>I am trying to implement two side-by-side responsive buttons and I want them to behave like on the image below.</p>
  
  <p><a href="https://i.stack.imgur.com/yjYeZ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yjYeZ.gif" alt="ScreenCapture"></a></p>
  
  <p>This is my XAML:</p>
  
  <pre><code>&lt;RelativePanel x:Name="contentPanel"&gt;
         &lt;Button x:Name="submitButton" Content="Submit"
                  Margin="0,40,0,0"
                  MinWidth="250"
                  RelativePanel.AlignLeftWithPanel="True"/&gt;
  
          &lt;Button x:Name="annulerButton" Content="Cancel"
                  Margin="5,40,0,0"
                  MinWidth="250"
                  RelativePanel.RightOf="submitButton"
                  RelativePanel.AlignRightWithPanel="True"/&gt;
  &lt;RelativePanel/&gt;
  </code></pre>
  
  <p>Please, any help?</p>