Recently, I wrote about the KeepFromBottomBehavior
that helped me to deal with popups that appeared on the bottom of the screen, but were covered by the app bar when using the full screen by applying ApplicationViewBoundsMode.UseCoreWindow
. When I started porting parts of Travalyzer
to Windows 8
.1 as a companion app, I kind of ran into the same problem: popup appearing ‘under’ the bottom app bar.
(This time I replaced the map by a simple blue area, to prevent you from needing to install the Bing Maps SDK to run the sample). So
I kind-of ported my KeepFromBottomBehavior to Windows 8.1, and got the following result.
Which is exactly what I wanted. If the App bar is open, the popup up appears above the App bar, if it is closed, it appears on the very bottom of the screen:
The code is actually a lot simpler than the KeepFromBottomBehavior for Windows Phone
8.1, using System.Threading.Tasks;
public class KeepFromBottomBehavior : SafeBehavior
private double originalBottomMargin;
private AppBar bottomAppBar;
protected override void OnSetup()
...(Read whole news on source site)