OnViewAppearing XLabs Does it work?

Nothing seems to happen when I use OnViewDisappearing from my ViewModel.
I am using it like this

    public override void OnViewDisappearing ()
    {
        base.OnViewDisappearing ();
        System.Diagnostics.Debug.WriteLine ("Test");
    }

OnDisappearing works fine from the View

    protected override void OnDisappearing ()
    {
        base.OnDisappearing ();
        System.Diagnostics.Debug.WriteLine ("Test from view");
    }

Answers

  • MichaelRumplerMichaelRumpler ATMember ✭✭✭✭✭

    It didn't work for me either. I didn't search for the reason or told the XLabs folks though.

  • ChrisNielsenChrisNielsen DKMember

    We need to use BaseView for our pages instead of ContentPage .

Sign In or Register to comment.