Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can you prevent the ApplicationBar flickering on the WP7 white theme?
    primarykey
    data
    text
    <p>I have a Windows Phone 7.1 Mango application where I have mostly successfully overridden the built in theme colors. However, if the user has the white theme selected and the page has a dark background and dark application bar, the application bar gets rendered and animated with a white background which causes an annoying flicker. After it gets done animating the background color gets sets to a dark color appropriately. </p> <p>Is there a way to either disable the app bar animation or set its initial animation background color?</p> <p>See this <a href="http://screencast.com/t/54KhTm2VlKao">video capture of the flickering issue.</a></p> <p>Xaml:</p> <pre><code>&lt;phone:PhoneApplicationPage x:Class="AppBarFlickers.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728" SupportedOrientations="Portrait" Orientation="Portrait"&gt; &lt;Grid Background="Black"&gt; &lt;Button Content="Toggle App Bar" Margin="100,185,100,0" VerticalAlignment="Top" Click="ButtonClick" Foreground="White" Background="Black" BorderBrush="White" /&gt; &lt;/Grid&gt; &lt;phone:PhoneApplicationPage.ApplicationBar&gt; &lt;shell:ApplicationBar BackgroundColor="Black" ForegroundColor="White"&gt; &lt;shell:ApplicationBarIconButton IconUri="/icon.png" Text="Button 1" /&gt; &lt;/shell:ApplicationBar&gt; &lt;/phone:PhoneApplicationPage.ApplicationBar&gt; &lt;/phone:PhoneApplicationPage&gt; </code></pre> <p>Code behind:</p> <pre><code>public partial class Page1 { public Page1() { InitializeComponent(); } private void ButtonClick(object sender, RoutedEventArgs e) { ApplicationBar.IsVisible = !ApplicationBar.IsVisible; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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