Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The sound solution is to divide your page so that the <code>boardGrid</code> takes 2/3 of the screen, the rest of your content (buttons, timer, score board...) in the other third. <br/>Secondly, enclose it inside a <code>Viewbox</code> element so that the board dimensions are recalculated when you go to different view modes (Full, Portrait, Snapped, Filled) <br/>Finally, make sure to make the page inherit <code>LayoutAwarePage</code> instead of <code>Page</code> so that it handles the changes of view modes gracefully</p> <p>Here's a rough mockup:</p> <pre><code>&lt;common:LayoutAwarePage xmlns:UI="using:Microsoft.Advertising.WinRT.UI" x:Class="ApexKT.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:MyApp" xmlns:common="using:MyApp.Common" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:snaps="http://schemas.microsoft.com/netfx/2007/xaml/presentation" mc:Ignorable="d" &gt; &lt;Grid x:Name="bigGrid"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;StackPanel x:Name="OneThird"&gt; &lt;TextBlock x:Name="ScoreBoard" Text="Score:" /&gt; &lt;Button x:Name="Button1" Content="Button 1" Click="" /&gt; &lt;/StackPanel&gt; &lt;Viewbox x:Name="TwoThirds"&gt; &lt;Viewbox.Transitions&gt; &lt;TransitionCollection&gt; &lt;ContentThemeTransition /&gt; &lt;/TransitionCollection&gt; &lt;/Viewbox.Transitions&gt; &lt;Grid x:Name="boardGrid"&gt;&lt;!-- insert row and column definitions here, or hard code them --&gt;&lt;/Grid&gt; &lt;/Viewbox&gt; &lt;/StackPanel&gt; &lt;VisualStateManager.VisualStateGroups&gt; &lt;VisualStateGroup x:Name="ApplicationViewStates"&gt; &lt;VisualState x:Name="FullScreenLandscape"/&gt; &lt;VisualState x:Name="Filled"/&gt; &lt;VisualState x:Name="Snapped" /&gt; &lt;VisualState x:Name="FullScreenPortrait" /&gt; &lt;/VisualStateGroup&gt; &lt;/VisualStateManager.VisualStateGroups&gt; &lt;/Grid&gt; </code></pre> <p>`</p>
    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. 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