A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
in my application I have roles and depending on the role it will have different menu options
You could create different shell templates for the roles. Detect the role when the user logins in to specify the MainPage.
public LoginPage()
{
InitializeComponent();
if (Role is admin)
{
//navigate to the admin template
MainPage = new Admin_Shell();
}
else if (Role is EmployeAdmin)
{
//navigate to the employeAdmin template
MainPage = new EmployeAdmin_Shell();
}
}
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.