Hello,
Welcome to our Microsoft Q&A platform!
Role based login in xamarin form
For this, please create multi application templates. Detect the role of the login accout to perform the navigation.
if (accout.Role == "Admin")
{
MainPage = new NavigationPage(new Admin_Mainpage());
}
if (accout.Role == "User")
{
MainPage = new NavigationPage(new User_Mainpage());
}
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.