We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Xamarin Holiday Challenge Guidelines for Windows

System requirements

  • Xamarin.Forms or greater is required to complete this challenge.

Follow these steps to add the required pages:

  1. Download and install the Essential UI Kit for Xamarin.Forms from the VS Marketplace.
  1. Create a new Xamarin.Forms project in Visual Studio:
    1. Set the Project name to XamarinHolidayChallenge.
    2. Select the blank template.
    3. Choose the Android and iOS platforms.
    4. Click OK.
  1. Right-click on the .NET Standard project and select Essential UI Kit for Xamarin.Forms.
  1. Select the following screens from the Essential UI Kit dialog and click Add.
    1. Forms -> Simple Login Page.
    2. Onboarding -> Walkthrough Page.

    Note: This extension adds all the files and NuGet packages required for the selected screens to the .NET Standard and platform projects.

  1. As documented here, install the NuGet package of SfScheduler in .NET Standard, Android, and iOS projects and call the init method of renderers.
  1. Create a new class called Meeting in the Model folder in your .NET Standard project. Then copy and paste the model code from this link.
  1. Create a new class called SchedulerPageViewModel in the ViewModel folder in your .NET Standard project. Copy and paste the view model code from this link.
  1. Add the following namespace in the SchedulerPageViewModel.cs file.
  2. using XamarinHolidayChallenge.Models;
  1. Add a new content page in your .NET Standard project with the name of Scheduler:
    1. Right-click the .NET Standard project.
    2. Click Add and choose New Item.
    3. Select Xamarin.Forms under Visual C# Items.
    4. Choose the Content Page.
    5. Set the name as “Scheduler”.
  1. Add the following namespaces in the Scheduler.xaml file.
  2. xmlns:syncfusion="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms"

    This namespace helps to access the APIs of Syncfusion’s Scheduler.


    This namespace helps to access the ViewModel added in step 7.

  1. Add the following code in the Scheduler.xaml file. The SchedulerPageViewModel mentioned in this code is a class created in step 7.
  2. <ContentPage.BindingContext>
       <syncfusion:SfSchedule ScheduleView="WorkWeekView" DataSource="{Binding Meetings}" AllowAppointmentDrag="True">
      <syncfusion:ScheduleAppointmentMapping EndTimeMapping="EndTime" StartTimeMapping="StartTime" ColorMapping="Color" SubjectMapping="Subject"/>

    Set the binding context and configure the Scheduler control.

  1. Hide the navigation bar using the NavigationPage.HasNavigationBar property of ContentPage, as follows.

Follow these steps to add navigation across the pages.

  • Set the OnBoardingAnimationPage to MainPage of the application as follows in the App.xaml.cs file in the .NET Standard project.
  • public App()
         MainPage = new NavigationPage(new Views.Onboarding.OnBoardingAnimationPage());
  • Navigate to the SimpleLoginPage after the walk-through process is completed. Add the following code inside the MoveToNextPage method in OnBoardingAnimationViewModel.cs.
  • private void MoveToNextPage()
         Application.Current.MainPage.Navigation.PushAsync(new Views.Forms.SimpleLoginPage());
  • Navigate to the Scheduler view from the login page. Add the following code inside the LoginClicked method of LoginPageViewModel.cs.
  • private void LoginClicked(object obj)
         Application.Current.MainPage.Navigation.PushAsync(new Scheduler());

Build and run it on Android and iOS.

Build and run the app on Android and iOS devices or emulators to see what you've built with the Essential UI Kit and Syncfusion’s Scheduler control.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon