如果不去掉手机状态栏,微软手机的UWP应用在横屏的时候,就会出现下图的样子,占用空间不美观
因此,需要在APP中加入 隐藏手机状态栏的代码
public async Task HideStatusBar() { if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(typeof(StatusBar).ToString())) { StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); await statusBar.HideAsync(); } }引用windows mobile for uwp 扩展.在App.cs的Lanuch方法中执行上面隐藏状态栏方法.