xamarin/Xamarin.Forms

[Bug] On iOS, menu button of MasterDetailPage disappears when using NavigationPage's InsertPageBefore and PopToRootAsync

开放

#7,051 创建于 2019年8月2日

 (6 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/1 :clock1:hacktoberfest 🍻help wantedin-progressp/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

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

描述

Description

On iOS, when using a MasterDetailPage, the "menu" button disappears when using NavigationPage's InsertPageBefore and PopToRootAsync to switch Detail page. No issue on Android, the "menu" icon does not disappear. A workaround on iOS consists in creating a new NavigationPage when switching the Detail page, but it causes a flickering issue on Android.

Steps to Reproduce

  1. On iOS, create a MasterDetailPage. The Detail page should be a NavigationPage. Open the app, the menu button is displayed and the menu opens when the user clicks on the button.
  2. Switch the Detail page by using a combination of InsertPageBefore and PopToRootAsync on the NavigationPage. The menu button disappears.

Expected Behavior

The menu button should not disappear, since the app's MainPage is the same MasterDetailPage with the same Master and the same Detail's NavigationPage. On Android, the hamburger icon does not disappear.

Actual Behavior

The menu button disappears.

Basic Information

  • Version with issue: XF 4.1
  • Last known good version: I'm not sure it has ever worked
  • IDE: VS 2019 16.2.0
  • Platform Target Frameworks: iOS 12.4

Reproduction Link

TestIos.zip

贡献者指南