Xamarin.forms: [WPF] Additional OnAppearing when using Navigation.PushAsync

Created on 6 Sep 2018  路  3Comments  路  Source: xamarin/Xamarin.Forms

Description

Switching between Contentpages with Navigation.PushAsync causes an additional set of functioncalls to OnAppearing and OnDisappearing. The back Button has the same issue. This seems to be specific to WPF.

Steps to Reproduce

  1. Download ReproCase
  2. Start app and click "Nav" Button
  3. Watch the console output window

Expected Behavior

BoxViewClock.MainPage Void OnDisappearing()
BoxViewClock.Page1 Void OnAppearing()

Actual Behavior

BoxViewClock.MainPage Void OnDisappearing()
BoxViewClock.MainPage Void OnAppearing()
BoxViewClock.Page1 Void OnAppearing()
BoxViewClock.MainPage Void OnDisappearing()

Basic Information

  • Version with issue: 3.2.0.729530-pre2 + 3.1.0.697729 (Latest stable and Latest prerelease)
  • Last known good version: none
  • IDE: Microsoft Visual Studio Enterprise 2017 Version 15.8.0
  • Platform Target Frameworks:

    • WPF: 4.7

  • Nuget Packages:
    NETStandard.Library {2.0.3} BoxViewClock
    Xamarin.Forms {3.2.0.729530-pre2} BoxViewClock
    OpenTK {3.0.1} BoxViewClock.WPF
    OpenTK.GLControl {3.0.1} BoxViewClock.WPF
    WpfLightToolkit {1.0.3} BoxViewClock.WPF
    Xamarin.Forms {3.2.0.729530-pre2} BoxViewClock.WPF
    Xamarin.Forms.Platform.WPF {3.2.0.729530-pre2} BoxViewClock.WPF

Reproduction Link

ReproCase_DoubleOnAppearing.zip

4 WPF bug

Most helpful comment

@samhouts Bug not reproduced on the latest version. I think the PR # 3372 to fix this bug.

All 3 comments

Thank you for the reproduction which displays the behavior.

I tried with the version 3.3.0.840541-pre1 the bug no longer appears.

Could you try with your solution? @MartinWegner Thanks

@samhouts Bug not reproduced on the latest version. I think the PR # 3372 to fix this bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xabre picture xabre  路  3Comments

simontocknell picture simontocknell  路  3Comments

suihanhbr picture suihanhbr  路  3Comments

jgold6 picture jgold6  路  3Comments

EmilAlipiev picture EmilAlipiev  路  3Comments