set startpage after runing the onbording page

i have created a Syncfusion onbording page. but how can i make it so it only shows the first time the users starts the app and after that it starts with the startpage. I using the last xamarin forms

3 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team February 8, 2021 02:01 PM UTC

Hi Marius, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and we can achieve your requirement “Shows OnBoarding page for first time of the App User” with the help of below code example. 
 
CodeSnippet[C#]: 
public App() 
{ 
    InitializeComponent(); 
 
    StartPage(); 
} 
 
private async void StartPage() 
{ 
    if (!App.Current.Properties.ContainsKey("IsFirstTimeVisit")) 
    { 
        App.Current.Properties["IsFirstTimeVisit"] = "True"; 
        MainPage = new Views.Onboarding.OnBoardingAnimationPage(); 
 
        await App.Current.SavePropertiesAsync(); 
    } 
    else 
    { 
        MainPage = new Views.Forms.SimpleLoginPage(); 
    } 
} 
 
Also, we have attached the sample for your reference. Please find the sample from the below link. 
 
  
Regards, 
Yuvaraj. 
  
  


Marked as answer

MA Marius February 10, 2021 09:15 AM UTC

thanks. it works


YP Yuvaraj Palanisamy Syncfusion Team February 11, 2021 04:55 AM UTC

Hi Marius, 
 
Thanks for your update. Please let us know if you have any concern. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon