BackButtonBehavior not working #19171
Labels
area-navigation
NavigationPage
fixed-in-9.0.0-preview.7.24407.4
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I have a problem with BackButtonBehavior but I can't tell you if it's a problem with MAUI, the MVVM toolkit, or the MAUI toolkit.
I have a page that opens in the main page's onAppearing method. A parameter is passed to this page which, in the ApplyQueryAttributes event, sets a property identified as ObservableProperty (IsFirstTime) to true. This property set to true, via the InvertedBoolConverter converter, sets the "IsVisible" of the BackButtonBehavior to false, but the arrow in the navigationbar continues to be seen. If instead of setting the IsFirstProperty to true in the ApplyQueryAttributes method, I set it to true in the SetupViewModel constructor, the arrow disappears correctly.
Steps to Reproduce
run the sample
Link to public reproduction project repository
https://github.com/acaliaro/MauiAppbackbuttonproblem
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: