How add programmatically sub menu item in flyout menu (Shell)

ntzz 1 Reputation point
2020-12-03T12:15:56.267+00:00

I want to add Sub Items at the Flyout items at shell.
As i see, there is no way to add them by code easily.

Any way to create a custom menu adaptative for each user when they log in?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,936 Reputation points
    2020-12-03T13:31:32.277+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Any way to create a custom menu adaptative for each user when they log in

    For this function, you could create two different templates for the application to display different views for users and visitors.

       public class App : Application  
       {  
           public static bool IsUserLoggedIn { get; set; }  
         
           public App()  
           {  
               if (!IsUserLoggedIn)  
               {  
                   MainPage = new AppShell_1();  
               }  
               else  
               {  
                   MainPage = new AppShell_2();  
               }  
           }  
       }  
    

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments