Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

SplitView: Status Bar is overlaying part of the window #12

Closed
relexx opened this issue Feb 9, 2016 · 2 comments
Closed

SplitView: Status Bar is overlaying part of the window #12

relexx opened this issue Feb 9, 2016 · 2 comments

Comments

@relexx
Copy link

relexx commented Feb 9, 2016

Using the SplitView App Template on Windows Phone (10), the status bar overlays part of the visible content. Actually the content is displayed "too far on the top", so the reserved space for the status bar has no chance to "evade" the content. It gets even worse when rotating to landscape mode...

I would correct it on my own, but I'm (yet) not very proficient in changing the style stuff...

Please don't get me wrong: This is by far the best template for Universal apps I've seen to date - keep going! :)

See two samples down here:
wp_ss_20160210_0002
wp_ss_20160210_0001

What it should look like:
wp_ss_20160210_0006
wp_ss_20160210_0005

Thank you!

@relexx relexx changed the title Status Bar is overlaying part of the window SplitView: Status Bar is overlaying part of the window Feb 9, 2016
@kozw
Copy link
Contributor

kozw commented Feb 10, 2016

Either hide the statusbar by adding this method in Shell.xaml.cs and invoke it from the ctor.

private async void HideStatusBar()
{
  if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) {
    await StatusBar.GetForCurrentView().HideAsync();
  }
}

Alternatively you can set the view bounds. Seems like this has no effect in the various emulators, you probably want to test this on an actual device.

ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseVisible);

You may want to set the status background color as well if you choose the second option.

@kozw
Copy link
Contributor

kozw commented Mar 6, 2016

Fixed in 0.4.0, added a WindowChrome object that automatically handles the visible bounds and statusbar colors.

@kozw kozw closed this as completed Mar 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants