Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Phone "Alignment image" - Why?
    primarykey
    data
    text
    <p>I'm developing for Windows Phone 8, I've designed my application and I noticed that there is an "Assignment grid" code that can be uncommented by default on a new project.</p> <p>Take a look below for the description in the file:</p> <pre><code>&lt;!--Uncomment to see an alignment grid to help ensure your controls are aligned on common boundaries. The image has a top margin of -32px to account for the System Tray. Set this to 0 (or remove the margin altogether) if the System Tray is hidden. Before shipping remove this XAML and the image itself.--&gt; &lt;!--&lt;Image Source="/Assets/AlignmentGrid.png" VerticalAlignment="Top" Height="800" Width="480" Grid.Row="0" Grid.RowSpan="2" IsHitTestVisible="False" /&gt;--&gt; </code></pre> <p>This is the background image that shows when it is uncommented:</p> <p><img src="https://i.stack.imgur.com/zTQsw.png" alt="Alignment grid"></p> <p>I'm confused by this, why are there "common boundaries" determined by an image? Surely the boundaries are determined within the development environment, IE the borders of the phone image? Even on that image shown above, the default "My Application" text doesn't fit within the "alignment image". So they're not abiding by their own alignment rule?</p> <p>What am I supposed to take from this information? By keeping everything within these boundaries I'm going to be losing half of the screen space!</p> <p>Why do I have to align my controls within these boundaries, will they end up not being shown? I thought the Windows Phones have the same resolution anyway?</p> <p><strong>EDIT:</strong></p> <p>I was hoping to put a notification button and indication of the current logged in username at the very top of my application like so:</p> <p><img src="https://i.stack.imgur.com/DVb7S.png" alt="Menu top showing username and notifications"></p> <p>The only way that I could have these inside the grid would be if I had them drooping down quite far, it wouldn't look how I want.</p> <p>Should I definitely be putting everything within the grid image, if not am I heading for trouble with my implementation?</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.
 

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