In my .net maui app I have a help page, called "AboutHelp", that I want to navigate to from more other pages. How do I do that ? My problem is that the Back arrow button doesn't work when I navigate to the AboutHelp page from other than the Main page, "MainPage".
If I navigate to a page I called "ControlPanel" with the command
[RelayCommand]
public async Task ControlsButton_Clicked()
{
var prams = new Dictionary<string, object>
{
{
"BtnSaveAllRawTxtAsIsEnbled"
,
BtnSaveAllRawTxtAsIsEnbled
},
{
"ButtonSaveAllTextAsIsEnabled"
,
ButtonSaveAllTextAsIsEnabled
},
{
"ButtonClearIsEnabled"
,
ButtonClearIsEnabled
},
{
"ButtonIDoIsEnabled"
,
ButtonIDoIsEnabled
},
{
"FormulaHolderIsEnabled"
,
FormulaHolderIsEnabled
}
};
await Shell.Current.GoToAsync
(
nameof(ControlPanel)
, true
, prams
);
}
and then from there navigate to the AboutHelp page with the command
[RelayCommand]
public void HelpClicked()
{
_ = Shell.Current.GoToAsync($"//{nameof(ControlPanel)}/{nameof(AboutHelp)}", true);
}
hen the Back arrow button works from the AboutHelp page back to the ControlPanel page but then there is no Back arrow button above the ControlPanel page.
My AppShell.xaml.cs looks like this:
namespace PdfCalculator;
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute(nameof(MainPage), typeof(MainPage));
Routing.RegisterRoute(nameof(ControlPanel), typeof(ControlPanel));
Routing.RegisterRoute(nameof(AboutHelp), typeof(AboutHelp));
Routing.RegisterRoute(nameof(LineChartView), typeof(LineChartView));
}
}
Navigate from MainPage to ControlPanel to AboutHelp
Would expect Back arrow button (that worked) on all pages.