Description
Binding to a valid ICommand on Shell.BackButtonBehavior causes back button to disappear on Android (maybe iOS as well, no idea on Windows since it is not currently supported).
Steps to Reproduce
- File -> New .NET MAUI App
- Create multi-page Shell App
- On SecondPage create
BackButtonBehavior and bind Command to a valid ICommand on the BindingContext:
<Shell.BackButtonBehavior>
<BackButtonBehavior
Command="{Binding BackCommand}"
IsEnabled="True"
IsVisible="True">
<BackButtonBehavior.IconOverride>
<FontImageSource FontFamily="OpenSansSemibold" Glyph="‹" />
</BackButtonBehavior.IconOverride>
</BackButtonBehavior>
</Shell.BackButtonBehavior>
- Run the app and navigate to SecondPage
- Observe back button is not visible
- While app is still running, use Hot Reload to change the
BackButtonBehavior Command binding to invalid ICommand and observe the back button appears but does nothing since binding is invalid
RC3 reproduction repo can be found here:
https://github.com/rjygraham/MauiShellNav
Reproduction video can be found here:
https://raw.githubusercontent.com/rjygraham/MauiShellNav/main/videos/BackButtonBehavior.mp4
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
None yet
Relevant log output
No response
Description
Binding to a valid
ICommandon Shell.BackButtonBehavior causes back button to disappear on Android (maybe iOS as well, no idea on Windows since it is not currently supported).Steps to Reproduce
BackButtonBehaviorand bindCommandto a validICommandon theBindingContext:BackButtonBehaviorCommandbinding to invalidICommandand observe the back button appears but does nothing since binding is invalidRC3 reproduction repo can be found here:
https://github.com/rjygraham/MauiShellNav
Reproduction video can be found here:
https://raw.githubusercontent.com/rjygraham/MauiShellNav/main/videos/BackButtonBehavior.mp4
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
None yet
Relevant log output
No response