Note that there are some explanatory texts on larger screens.

plurals
  1. POApplicationBar Working Different in Windows Phone 7 Beta Than CTP
    primarykey
    data
    text
    <p>There are a few issues I notice with the beta version of the WP7 tools:</p> <ul> <li>The ApplicationBar no longer causes a page to resize it contents with the CTP workaround</li> <li>Using the ApplicationBar from App.xaml and imported as a static resource does not work as expected</li> </ul> <p>In the CTP version of the WP7 tools when using an appbar and navigation from page to page, the appbar remainined on top of the page content rather than having the content resize itself to be on top of the appbar. The work around was to set the IsVisible property to false in the constructor and set to true on the page loaded event. This is no longer working and the appbar remains on top of the loaded page unless turned completely off. I have my appbar xaml in app.xaml and each page uses it as a static resource. </p> <p>Also the click event is no longer triggered for app buttons, I am using the appbar as a resource in my App.xaml and added as a {StaticResource} in my page's xaml. Any help would be appreciated as this is the only way I have for navigating around my application, aside from rolling my own navigation page.</p> <pre><code>public CalculatorView() { InitializeComponent(); ApplicationBar.IsVisible = false; SupportedOrientations = SupportedPageOrientation.Portrait; Application.Current.RootVisual = this; } private void PhoneApplicationPageLoaded(object sender, RoutedEventArgs e) { ApplicationBar.IsVisible = true; } </code></pre> <p>AppBar XAML:</p> <pre><code>&lt;Shell:ApplicationBar x:Key="GlobalApplicationBar" IsVisible="True" IsMenuEnabled="True"&gt; &lt;Shell:ApplicationBar.Buttons&gt; &lt;Shell:ApplicationBarIconButton x:Name="CalculaterAppIconButton" Click="CalculaterMenuItemClick" IconUri="/Images/Icons/32/Back.png" Text="Main" /&gt; &lt;Shell:ApplicationBarIconButton x:Name="HistoryAppIconButton" Click="HistoryMenuItemClick" IconUri="/Images/Icons/32/Intl-History.png" Text="History" /&gt; &lt;Shell:ApplicationBarIconButton x:Name="StatisticsAppIconButton" Click="StatisticsMenuItemClick" IconUri="/Images/Icons/32/Stats.png" Text="Stats" /&gt; &lt;Shell:ApplicationBarIconButton x:Name="OptionsAppIconButton" Click="OptionsMenuItemClick" IconUri="/Images/Icons/32/Settings.png" Text="Options" /&gt; &lt;/Shell:ApplicationBar.Buttons&gt; &lt;Shell:ApplicationBar.MenuItems&gt; &lt;Shell:ApplicationBarMenuItem x:Name="StartingHandsMenuItem" Click="StartingHandsMenuItemClick" Text="Starting Hands" /&gt; &lt;Shell:ApplicationBarMenuItem x:Name="HoleOddsMenuItem" Click="HoleOddsMenuItemClick" Text="Hole Odds" /&gt; &lt;/Shell:ApplicationBar.MenuItems&gt; &lt;/Shell:ApplicationBar&gt; </code></pre> <p>AppBar in Phone Application Page:</p> <pre><code>ApplicationBar="{StaticResource GlobalApplicationBar}" //In my page.xaml </code></pre>
    singulars
    1. This table or related slice is empty.
    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