xamarin/Xamarin.Forms

OnAppearing not being called for the current page in shell instead called for parent page

Aperta

#7832 aperta il 4 ott 2019

 (3 commenti) (3 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/shell :shell:e/2 :clock2:help wantedt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

When media picker is opened from a detail page in shell, then after returning from the picker task completion only the on appearing of the parent page is called but not of the detail page.

I have attached Xaminals Xaminals.zip sample code in which I have added a gallery picker on button click in CatDetailPage

Steps to Reproduce

  1. On app launch, click on any cat item in CatsPage, this will cause navigation to CatDetailPage
  2. In CatDetailPage, click on "Open File Picker" button, this will open an action sheet
  3. Select "Choose from gallery" from the action sheet, it will open gallery/photos app
  4. From the gallery app click back or select an image, it will navigate back to CatDetailPage
  5. Observe that OnAppearing is not called for CatDetailPage but is called for CatsPage

Expected Behavior

The OnAppearing should be called for CatDetailPage

Actual Behavior

The OnAppearing of CatsPage is called

Basic Information

  • Version with issue: 4.2.0.848062
  • Last known good version: Not known
  • IDE: Visual Studio 2019

Reproduction Link

Xaminals.zip

Guida contributor