title: Remove Margin Button ContentDialog Windows 10 Mobile - XAML
body: <p>In my ContentDialog. On focus any element, type TextBox, the keyboard appear. When Keyboard appear, have a big margin above( so 20-30 px maybe). This space is the same height of the space allocated for Primary and Secondary Buttons. If have this margin, my content have a scrollbar and I do not want it. I have space sufficient to show all content of my dialog if remove this margin/padding of course. </p>
  
  <p>This topic is related with: <a href="https://stackoverflow.com/questions/32605138/contentdialog-windows-10-mobile-xaml-fullscreen-padding/32612930?noredirect=1#comment53080680_32612930">ContentDialog Windows 10 Mobile XAML - FullScreen - Padding</a></p>
  
  <p></p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal"&gt;
  
  
               &lt;TextBox x:Name="txtUser" IsSpellCheckEnabled="False"
               Background="Black" Foreground="Red  BorderBrush="Red" BorderThickness="1"
               PlaceholderText="Digit your username"
               GotFocus="txtUser_GotFocus" Style="{StaticResource TextBoxStyle}" 
               TextChanged="txtUser_TextChanged"
               /&gt;
  
              &lt;Button x:Name="MakeOff" 
              Height="32" BorderThickness="1" 
              HorizontalAlignment="Center"
              Foreground="Red" Background="Black"
              Style="{StaticResource ButtonStyle}"
              Margin="0"&gt;
  
              &lt;HyperlinkButton
              Height="32" BorderThickness="1" 
              HorizontalAlignment="Center"
              Foreground="Red" Background="Black"
              Margin="0"
              NavigateUri="www.google.pt"
              Style="{StaticResource HyperLinkButtonStyleMobile}"
              Content="Register"&gt;
                  &lt;HyperlinkButton.ContentTemplate&gt;
                      &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding}" /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/HyperlinkButton.ContentTemplate&gt;
              &lt;/HyperlinkButton&gt;
  
              &lt;Button 
              Height="32" BorderThickness="1" 
              HorizontalAlignment="Center"
              Foreground="Red" Background="Black"
              Style="{StaticResource ButtonStyle}"
              Margin="0"&gt;
  
              &lt;HyperlinkButton x:Name="btnRegisterTwo"
              Height="32" BorderThickness="1" 
              HorizontalAlignment="Center"
              Foreground="Red" Background="Black"
              Margin="0"
              NavigateUri="www.google.pt"
              Style="{StaticResource HyperLinkButtonStyleMobile}"
              Content="Register"&gt;
                  &lt;HyperlinkButton.ContentTemplate&gt;
                      &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding}" /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/HyperlinkButton.ContentTemplate&gt;
              &lt;/HyperlinkButton&gt;
  
            &lt;Button x:Name="MakeOffThree" 
              Height="32" BorderThickness="1" 
              HorizontalAlignment="Center"
              Foreground="Red" Background="Black"
              Style="{StaticResource ButtonStyle}"
              Margin="0"&gt;
            &lt;/StackPanel&gt;
        &lt;/Grid&gt;
  </code></pre>
  
  <p>Someone help to remove this?</p>
  
  <p>Thanks</p>