Bug 37989 - Empty applicationbar or empty space in Windows Phone
Summary: Empty applicationbar or empty space in Windows Phone
Status: RESOLVED DUPLICATE of bug 36473
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.0.0
Hardware: Macintosh Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-25 12:54 UTC by Daniel Hindrikes
Modified: 2017-01-06 13:05 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Project to reproduce bug (138.28 KB, application/zip)
2016-01-25 12:54 UTC, Daniel Hindrikes
Details
the first page with appbar (15.39 KB, image/png)
2016-01-25 12:56 UTC, Daniel Hindrikes
Details
page 2 with empty space instead of an appbar. (8.04 KB, image/png)
2016-01-25 12:57 UTC, Daniel Hindrikes
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 36473

Description Daniel Hindrikes 2016-01-25 12:54:53 UTC
Created attachment 14712 [details]
Project to reproduce bug

When navigate from a page that has a toolbar (applicationbar in windows phone) to a page that doesn't has a toolbar an empty applicationbar or empty space is shown where the applicationbar was on the prevoius page.

The attached solution can be used to reproduce the bug.
Comment 1 Daniel Hindrikes 2016-01-25 12:56:16 UTC
Created attachment 14713 [details]
the first page with appbar
Comment 2 Daniel Hindrikes 2016-01-25 12:57:00 UTC
Created attachment 14714 [details]
page 2 with empty space instead of an appbar.
Comment 3 E.Z. Hart [MSFT] 2016-02-04 17:16:27 UTC

*** This bug has been marked as a duplicate of bug 36473 ***
Comment 4 Surányi Gábor 2017-01-06 13:05:11 UTC
Workaround steps:
1. In your WinPhone project in MainPage.xaml.cs set your ApplicationBar opacity (ctor or page Loaded event):

ApplicationBar.Opacity = 0.9;

2. In Xamarin.Forms PCL project in App.xaml set an OnPlatform resource:

<OnPlatform x:Key="ToolbarPagePaddingWP" x:TypeArguments="Thickness" WinPhone="0,0,0,72" Android="0" iOS="0"/>

3. Use previously created resource on your Page that contains ToolbarItems

<ContentPage Padding="{StaticResource ToolbarPagePaddingWP}" ...



It works :)