make two pages route page + upload page.
when you click on button it load route page
<CustomControls:MenuButton x:Name="routesButton" AutomationId="button" Text="Route page" ImageSource="routes_icon.png" FontSize="22" HorizontalOptions="Start" VerticalOptions="Center" ContentLayout="Left,10" Clicked="OnClickedRoutes" />
private void OnClickedRoutes(object sender, EventArgs e)
{
Copy
try { var page = (Page)Activator.CreateInstance(typeof(RoutePage)); if (page != null) { this.Detail = new NavigationPage(page); NavigationPage.SetHasBackButton(Detail, false);
routesButton.HasSelect = true;
upload Button.HasSelect = false; } } catch (Exception ex) { _logger.Error("OnRoutesClicked", ex); }
}
same to upload page.
<CustomControls:MenuButton x:Name="uploadButton" AutomationId="button" Text="Upload page" ImageSource="upload_icon.png" FontSize="22" HorizontalOptions="Start" VerticalOptions="Center" ContentLayout="Left,10" Clicked="OnClickedUpload" />
private void OnClickedUpload(object sender, EventArgs e)
{
Copy
try { var page = (Page)Activator.CreateInstance(typeof(UploadPage)); if (page != null) { this.Detail = new NavigationPage(page); NavigationPage.SetHasBackButton(Detail, false);
routesButton.HasSelect = false;
upload Button.HasSelect = true; } } catch (Exception ex) { _logger.Error("OnUploadClicked", ex); }
}
try to navigate beween the pages?