LoginScreen before MainPage with SFNavigationDrawer

I have an App that doesn't use AppShell at all. It only uses SFNavigationDrawer in a MainPage switching the NavDrawerContent with respective NaviagtionPages. See https://www.syncfusion.com/forums/186017/switch-between-several-independent-pages as example.


In my app I need a LoginScreen shown previous to the Mainpage and before the NavDrawer is visible. 

If I initialize my app in App.xaml.cs with 

MainPage = new LoginPage();

the LoginPage is shown first. Upon clicking the login button it should forward me to MainPage and create the SFNavDrawer. 

How can I achieve this?


Thanks in advance,

Toby


1 Reply

BV Brundha Velusamy Syncfusion Team January 8, 2024 07:54 AM UTC

Hi Tobias,

 

Thank you for reaching out to Syncfusion support.

 

We have reviewed your query and created a sample to address your requirement based on the provided information. We have attached the sample and its demonstration video for your reference. Please take a look at the provided sample and video. Please feel free to reach out if you have any further questions or concerns.

 

Regards,

Brundha V


Attachment: NavigationDrawerLogin_1890ea91.zip

Loader.
Up arrow icon