Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin UI上方的空白_Xamarin_Xamarin.forms - Fatal编程技术网

Xamarin UI上方的空白

Xamarin UI上方的空白,xamarin,xamarin.forms,Xamarin,Xamarin.forms,我创建了一个Xamarin.Forms应用程序,当我在运行build 14393的Windows10 mobile中启动该应用程序时,我看到了额外的空白,而不是电池和其他指示器 您必须将UWP的Windows Mobile扩展包含在Windows UWP项目中 修改Windows UWP项目的App.xaml.cs的OnLaunched,并添加以下内容: if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusB

我创建了一个Xamarin.Forms应用程序,当我在运行build 14393的Windows10 mobile中启动该应用程序时,我看到了额外的空白,而不是电池和其他指示器

您必须将UWP的Windows Mobile扩展包含在Windows UWP项目中

修改Windows UWP项目的App.xaml.cs的OnLaunched,并添加以下内容:

    if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
    {

        var statusBar = StatusBar.GetForCurrentView();
        if (statusBar != null)
        {
            statusBar.BackgroundOpacity = 1;
            statusBar.BackgroundColor = Colors.Black;
            statusBar.ForegroundColor = Colors.White;
        }
    }

不确定你真正的问题是什么:你没有显示屏幕截图,没有代码。。。没有什么请用更多信息编辑你的问题,在这个问题因为不清楚你在问什么而结束之前。