Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>StackPanel resize does not calculate maximum height or widht which could invoke scrollbars to appear. You should use Grid instead and align items in it.</p> <pre><code>&lt;Border&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;!-- top --&gt; &lt;RowDefinition Height="*"/&gt; &lt;!-- content --&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;!-- bottom --&gt; &lt;/Grid.RowDefinitions&gt; &lt;Grid Grid.Row="1" VerticalAlignment="Top"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="*"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;Grid Name="ContentButtons" Height="20"&gt; &lt;Button Name="MinimizeContent"/&gt; &lt;Button Name="MaximizeContent"/&gt; &lt;/Grid&gt; &lt;ContentControl Grid.Row="1" Name="MyContent"/&gt; &lt;/Grid &gt; &lt;!-- &lt;ContentControl Name="MyContent" Grid.Row="1" VerticalAlignment="Top"/&gt; --&gt; &lt;Grid Name="MyBottomControls" Grid.Row="2" VerticalAlignment="Bottom"&gt; &lt;Button Name="Delete" HorizontalAlignment="Left" Style="{StaticResource DeleteButtonStyle}"/&gt; &lt;Button Name="Close" HorizontalAlignment="Center" Style="{StaticResource CloseButtonStyle}"/&gt; &lt;Button Name="Hide" HorizontalAlignment="Right" Style="{StaticResource HideButtonStyle}"/&gt; &lt;/Grid&gt; &lt;!-- shows up at last so the Grid can place it at the very top it in the Z axis --&gt; &lt;ContentControl Name="MyTop" Grid.Row="0" VerticalAlignment="Top"/&gt; &lt;/Grid&gt; &lt;/Border&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload