我实际上是Xamarin.Forms的新手,我正在开发一个相当简单的跨平台应用程序。该应用程序在 Android 中显示得足够好,但在 UWP 中有一个愚蠢的空白区域。该项目由一个 TabbedPage 组成,其中包含 4 个 NavigationPages,以便在其中推送和弹出页面。
在深入了解 UWP 平台细节后,我能够更改选项卡的样式。我一直在寻找 3 天的解决方案,这让我发疯。到目前为止,我找到的唯一解决方案(在 VS 2015 的 Live Visual Tree 的帮助下)是从 CommandBar 将Visibility属性更改为“Collapsed”(如第三张附图所示)。但这不是解决方案,因为它只会在运行时消失。
任何人都可以帮忙吗?提前致谢。
编辑: 我的MainPage.xaml代码如下:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:_TIF_Xamarin;assembly=_TIF_Xamarin"
x:Class="_TIF_Xamarin.MainPage">
<!--4 different tabs, which also are Navigation Pages-->
<NavigationPage Title="Home">
<x:Arguments>
<local:HomePage />
</x:Arguments>
</NavigationPage>
<NavigationPage Title="Exhibitor">
<x:Arguments>
<local:ExhibitorsPage />
</x:Arguments>
</NavigationPage>
<NavigationPage Title="Exhibits">
<x:Arguments>
<local:ExhibitsPage />
</x:Arguments>
</NavigationPage>
<NavigationPage Title="More">
<x:Arguments>
<local:MorePage />
</x:Arguments>
</NavigationPage>
</TabbedPage>