xamarin/Xamarin.Forms

NavigationPage.HasBackButton binding doesn't work on iOS

开放

#3,389 创建于 2018年7月24日

 (1 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/3 :clock3:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

NavigationPage.HasBackButton binding doesn't work on iOS (works on android)

Steps to Reproduce

  1. Bind NavigationPage.HasBackButton in xaml to a bool (initialize to false) in the view model
  2. Wait a bit after the page loads, and change the bool to true

Expected Behavior

Back button should appear when the bool is set to true

Actual Behavior

The PropertyChanged notification of the bool does not cause the back button to appear.

Basic Information

  • Version with issue: 3.1.0.637273
  • Last known good version: Unknown
  • IDE: Vs 15.7.5
  • Platform Target Frameworks: .NetStandard 2.0
    • iOS: 11.4
  • Nuget Packages:
  • Affected Devices: iPhone

Reproduction Link

HasBackButtonFailure.zip

Download the zip, deploy the ios project, click one of the list items, click the EnableBackButton Button. IT doesnt work. Deploy it on android, and it works properly.

贡献者指南