A newer version of this page is available. Switch to the current version.

Add Scheduler to Xamarin.Forms Solution

  • 2 min to read

This topic explains how to integrate the DevExpress Scheduler component into a Xamarin.Forms cross-platform solution.

Important

The DevExpress Scheduler for Xamarin.Forms component is available for iOS and Android platforms, and can be used in Xamarin.Forms solutions that use the .NET Standard code sharing strategy.

  1. Add the following assembly references to your Xamarin.Forms solution's projects:

    Project

    Assembly

    <YourAppName>

    (A .NET Standard project that contains the shared code)

    DevExpress.XamarinForms.Core.dll

    DevExpress.XamarinForms.Scheduler.dll

    <YourAppName>.Android

    (A project that contains Android-specific code)

    DevExpress.XamarinForms.Scheduler.Android.dll

    DevExpress.Xamarin.Android.Scheduler.dll

    <YourAppName>.iOS

    (A project that contains iOS-specific code)

    DevExpress.XamarinForms.Scheduler.iOS.dll

    DevExpress.Xamarin.iOS.Scheduler.dll

    Note

    These files are in the <DevExpress.Xamarin bundle>/Binaries directory by default. Ensure the downloaded <DevExpress.Xamarin> bundle was unzipped.

  2. Add the following initialization code before the LoadApplication method call in your iOS project's AppDelegate.cs file:

    DevExpress.XamarinForms.Scheduler.Scheduler.Init();
    
  3. Add the following namespace to an XAML markup or C# file in which you create a scheduler:

    xmlns:dxsch="clr-namespace:DevExpress.XamarinForms.Scheduler;assembly=DevExpress.XamarinForms.Scheduler"
    
  4. Create a SchedulerView instance in XAML markup or C# code:

    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                xmlns:local="clr-namespace:SchedulerExample"
                x:Class="SchedulerExample.MainPage"
                xmlns:dxsch="clr-namespace:DevExpress.XamarinForms.Scheduler;assembly=DevExpress.XamarinForms.Scheduler">
        <dxsch:SchedulerView x:Name="scheduler">
        </dxsch:SchedulerView>
    </ContentPage>
    

The Getting Started section provides examples with instructions on how to bind a scheduler to a data source, and adjust various settings.