我喜欢隐藏栏,但保留后退按钮,因为我有一些其他控件放在顶部区域 . 我为此使用了HasNavigationBarHasBackButton,但如果隐藏了该栏,则看起来后退按钮无法恢复 . 反正有没有显示后退按钮?

XAML:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         x:Class="CH.AdDetailPage"
         NavigationPage.HasNavigationBar="True"
         NavigationPage.HasBackButton="True"
         NavigationPage.BackButtonTitle="Back" Title="AdDetail">
    <ContentPage.Content>
        <StackLayout>
            <Label Text="Welcome to Ad Detail Pages!" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

HasNavigationBar=True, and HasBackButton=True
enter image description here
HasNavigationBar=True, and HasBackButton=False
enter image description here
以上两者都有效 .

但当 HasNavigationBar=False, and HasBackButton=True :它不起作用 .
enter image description here