Uno 导航栏不显示标签

问题描述 投票:0回答:1

我正在将 UNO NavigationBar 用于 Windows 和 WASM 应用程序。这是代码:

<utu:NavigationBar x:Name="navBar" Background="{StaticResource NavigatorBkgColor}" 
        Content="{Binding Title, Mode=TwoWay}" MainCommandMode="Action" >
    <utu:NavigationBar.PrimaryCommands>
        <AppBarButton Label="Locations" uen:Navigation.Request="Locations" Foreground="White">
            <AppBarButton.Icon>
                <BitmapIcon UriSource="ms-appx:///Project/Assets/Icons/location_chip.png"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton Label="Login" uen:Navigation.Request="Login" Foreground="White">
            <AppBarButton.Icon>
                <BitmapIcon UriSource="ms-appx:///Project/Assets/Icons/login.png"/>
            </AppBarButton.Icon>
        </AppBarButton>
    </utu:NavigationBar.PrimaryCommands>
    <utu:NavigationBar.SecondaryCommands>
        <AppBarButton Label="Profile" Command="{Binding ProfileCommand}" IsEnabled="{Binding IsLoggedIn}" />
        <AppBarButton Label="Exit App" Command="{Binding ExitAppCommand}"  />
    </utu:NavigationBar.SecondaryCommands>
</utu:NavigationBar>

问题是图标出现在栏中,但没有出现标签。图标也显得很小,有办法增加尺寸吗? 使用 Uno.Extensions 2.4.2

uinavigationbar uno
1个回答
0
投票

使用后,我决定放弃该功能并使用堆栈面板和按钮创建自己的导航栏。

© www.soinside.com 2019 - 2024. All rights reserved.