xamarin/Xamarin.Forms

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

Ouverte

#7 832 ouverte le 4 oct. 2019

 (3 commentaires) (3 réactions) (0 personne assignée)C# (1 926 forks)batch import
a/shell :shell:e/2 :clock2:help wantedt/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur