You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
I dynamically on logon load additional menu items, like so:
Style dynamicStyle = (Style)Application.Current.Resources["DomesticShell"];
var flyOutMenu = Shell.Current.FindByName<FlyoutItem>("mainFlyout");
var menuContent = new ShellContent
{
Title = "Manage Menu",
Content = new MenuHomePage(),
Route = "menuHome",
ContentTemplate = new DataTemplate(typeof(MenuHomePage)),
ClassId = "menuManagement",
Icon = "menu.png",
Style = dynamicStyle
};
flyOutMenu.Items.Add(menuContent);
This route is also registers in AppShell.xaml.cs Routing.RegisterRoute("menuHome", typeof(MenuHomePage));
I have a button on this page to navigate to a secondary page, registered with this: Routing.RegisterRoute("editMenu", typeof(EditMenu));
In that button,
I call await Shell.Current.GoToAsync("editMenu").ConfigureAwait(true);
This navigation works fine on Android, but does not navigate on iOS devices.
What am I missing?
Steps to Reproduce
Create an Application with a flyoutmenu
Add items to the flyout menu
Attempt to navigate to pages added to the flyout menu that have routes
Verify this works on Android and iOS
Expected Behavior
Navigate with Shell should work the same on android vs. iOS
Actual Behavior
Navigation works on Android, navigation stays on the same page on iOS
Hi,
FlyoutDisplayOptions="AsMultipleItems" was working perfectly without any navigation problems on Xamarin.Forms version 5.0.0.1874 but it started failing thereafter.
Description
The Shell navigation seems to work differently on iOS vs. Android. I have the following code:
In my AppShell.xaml,
I have a flyout item:
I dynamically on logon load additional menu items, like so:
This route is also registers in AppShell.xaml.cs
Routing.RegisterRoute("menuHome", typeof(MenuHomePage));
I have a button on this page to navigate to a secondary page, registered with this:
Routing.RegisterRoute("editMenu", typeof(EditMenu));
In that button,
I call
await Shell.Current.GoToAsync("editMenu").ConfigureAwait(true);
This navigation works fine on Android, but does not navigate on iOS devices.
What am I missing?
Steps to Reproduce
Expected Behavior
Navigate with Shell should work the same on android vs. iOS
Actual Behavior
Navigation works on Android, navigation stays on the same page on iOS
Basic Information
Environment
Show/Hide Visual Studio info
Build Logs
Screenshots
Reproduction Link
Workaround
The text was updated successfully, but these errors were encountered: