Skip to content

[Bug] Flyout page INavigationAware events incorect triggering #2587

Closed
@amaneshi

Description

@amaneshi

Description

Thank you for great framework, very like it! Found small bug in Flyout page events handling, but I really need to work right (made some ugly workaround).

So I have some simple root navigation page, e.g. /NavigationPage/HomePage. Then I navigate to Flyout page with some setting pages with path /MainPage/NavigationPage/SomeDetailPage ("MainPage" is Flyout page). Till now everything work as expected. After that when I navigate to other Flyout detail pages (with NavigationPage/OtherDetailPage) I use INavigationAware method OnNavigatedFrom inside detail page to cleanup state changes and event trigerred.

But then I try to return to HomePage with /NavigationPage/HomePage and this time method OnNavigatedFrom on last active detail page was not triggered. I made some additional checks - can add that same event, OnNavigatedFrom, in parent VM (for Flyout page itself) still triggered as expected, but not in detail page.

Steps to Reproduce

  1. Open App - Home page is root page
  2. Press button to open Flyout page with 2 detail pages
  3. On Flyout page switch between detail page to see in debug console 2 messages from OnNavigatedFrom in detail page and Flyout page itself
  4. From side menu press button to return to home page and in debug console only message from OnNavigatedFrom in Fluout page (but nothing from detail page)

Expected Behavior

Correct OnNavigatedFrom method trigger on navigation from Flyout detail page

Actual Behavior

OnNavigatedFrom not triggered in detail page if navigate outside Flyout page

Basic Information

Platform: UWP
Prism: 8.1.97
XF: 5.0.0.2125

Reproduction Link

Sample App

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions