Skip to content

FlyoutPage IsPresented does not work when user opens flyout by clicking on hamburger #15767

Open
@SmartmanApps

Description

@SmartmanApps

Description

With FlyoutLayoutBehavior.Popover, whereby the Details page should entirely hide the Flyout(Menu)Page, most of the Disappearing lifecycle events never run. i.e.

  • OnDisappearing never runs (observed on both Windows and Android)
  • IsVisible is never set to false (observed on both Windows and Android)
  • IsPresented only ever set to false on Windows manually by dev (works automatically on Android if user hides the menu again without making a selection, but only then, otherwise same behaviour as Windows)
  • IsPresentedChanged DOES work, but that's the only one I've seen working (and only when the dev explicitly sets IsPresented to false themselves on Windows, otherwise it stays true the whole time).

Steps to Reproduce

  1. create a new app
  2. add a FlyoutPage (note: the FlyoutPage sample app STILL doesn't work - I reported this previously. Error message is "Can't change IsPresented when setting Default")
  3. add some debugging to observe these behaviours
  4. run on different platforms

Link to public reproduction project repository

https://github.com/SmartmanApps/FlyoutRepro

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

1000.19041.1000.0 Android API 28

Did you find any workaround?

No (IsPresentedChanged works on Android, but only half usable on Windows).

Relevant log output

********************************** TemplateFlyoutMenuPage.OnAppearing is running
********************************** TemplateFlyoutPage.IsPresented is True
********************************** TemplateFlyoutPage.IsVisible is True
********************************** TemplateFlyoutPage.IsPresented is False
********************************** TemplateFlyoutPage.IsVisible is True
********************************** TemplateFlyoutPage.IsPresented is True
********************************** TemplateFlyoutPage.IsVisible is True
********************************** TemplateFlyoutPage.IsPresented is False
********************************** TemplateFlyoutPage.IsVisible is True

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions