Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can one set elements on top of the Applicationbar (or have the layout be aware of it)?
    primarykey
    data
    text
    <p>To clarify, I want to have my ApplicationBar resting on top of my LayoutRoot grid. The desired effect would be like this:</p> <pre><code>&lt;StackPanel&gt; &lt;Grid x:Name="LayoutRoot" Background="Transparent"&gt; &lt;/Grid&gt; &lt;phone:PhoneApplicationPage.ApplicationBar&gt; &lt;shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"&gt; &lt;/shell:ApplicationBar&gt; &lt;/phone:PhoneApplicationPage.ApplicationBar&gt; &lt;/StackPanel&gt; </code></pre> <p>Of course, the above code doesn't work because the must be in the root tag of the page, but I do wish it did.</p> <p>Does anyone know a way that I can create this effect? It doesn't have to be a perfect solution, just something that replicates it and will work on any resolution.</p> <p>By request, I'll elaborate more on the specific problem.</p> <p>The picture below is what I currently have:</p> <p><img src="https://i.stack.imgur.com/QTyWk.png" alt="current layout"></p> <p>I want the 'Specular Light' control to 'rest' on top of the app bar, like so:</p> <p><img src="https://i.stack.imgur.com/743wY.png" alt="correct layout"></p> <p>And lastly but certainly not least, here is the relevant XAML:</p> <pre><code>&lt;Grid x:Name="LayoutRoot" Background="Transparent"&gt; &lt;DrawingSurface x:Name="DrawingSurfaceBackground" Loaded="DrawingSurfaceBackground_Loaded" /&gt; &lt;ScrollViewer Name="LightControl" Height="200" VerticalAlignment="Bottom" Visibility="Collapsed"&gt; &lt;Grid Margin="12,0,12,0"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="Auto" /&gt; &lt;ColumnDefinition Width="*" /&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" Text="Ambient Light" Style="{StaticResource PhoneTextLargeStyle}" /&gt; &lt;Slider Grid.Column="1" Grid.Row="0" Name="AmbientLightSlider" Minimum="0.0" Maximum="2.0" Value="1.0" ValueChanged="AmbientLightSlider_OnValueChanged" /&gt; &lt;TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" Text="Diffuse Light" Style="{StaticResource PhoneTextLargeStyle}" /&gt; &lt;Slider Grid.Column="1" Grid.Row="1" Name="DiffuseLightSlider" Minimum="0.0" Maximum="2.0" Value="1.0" ValueChanged="DiffuseLightSlider_OnValueChanged" /&gt; &lt;TextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Top" Text="Specular Light" Style="{StaticResource PhoneTextLargeStyle}" /&gt; &lt;Slider Grid.Column="1" Grid.Row="2" Name="SpecularLightSlider" Minimum="0.0" Maximum="2.0" Value="1.0" ValueChanged="SpecularLightSlider_OnValueChanged" /&gt; &lt;/Grid&gt; &lt;/ScrollViewer&gt; &lt;/Grid&gt; &lt;phone:PhoneApplicationPage.ApplicationBar&gt; &lt;shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"&gt; &lt;shell:ApplicationBarIconButton IconUri="/Toolkit.Content/ApplicationBar.Center.png" Text="Center" Click="Center_Click" /&gt; &lt;shell:ApplicationBarIconButton IconUri="/Toolkit.Content/ApplicationBar.Wireframe.png" Text="Wireframe" Click="Rasterizer_Click" /&gt; &lt;shell:ApplicationBarIconButton IconUri="/Toolkit.Content/ApplicationBar.Center.png" Text="Light" Click="Light_Click" /&gt; &lt;/shell:ApplicationBar&gt; &lt;/phone:PhoneApplicationPage.ApplicationBar&gt; </code></pre> <p>Thank you for reading and for your help.</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