menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfSchedule - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfSchedule

    Represents the SfSchedule that provides simple method, to plan a process or list of events in a particular time.

    Inheritance
    System.Object
    SfSchedule
    Namespace: Com.Syncfusion.Schedule
    Assembly: Syncfusion.SfSchedule.Android.dll
    Syntax
    public class SfSchedule : FrameLayout

    Constructors

    SfSchedule(Context)

    Initializes a new instance of the SfSchedule class

    Declaration
    public SfSchedule(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    SfSchedule(Context, IAttributeSet)

    Initializes a new instance of the SfSchedule class

    Declaration
    public SfSchedule(Context context, IAttributeSet attrs)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    Android.Util.IAttributeSet attrs

    Required attributes set

    SfSchedule(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfSchedule class.

    Declaration
    public SfSchedule(Context context, IAttributeSet attribute, int defaultStyleAttribute)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    Android.Util.IAttributeSet attribute

    Required attribute set

    System.Int32 defaultStyleAttribute

    Default style attribute.

    SfSchedule(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the SfSchedule class.

    Declaration
    public SfSchedule(Context context, IAttributeSet attribute, int defaultStyleAttribute, int defaultStyleResource)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    Android.Util.IAttributeSet attribute

    Required attribute set

    System.Int32 defaultStyleAttribute

    Default style attribute.

    System.Int32 defaultStyleResource

    Default style resource.

    Properties

    AllowAppointmentDrag

    Gets or sets a value indicating whether this SfSchedule allow appointment drag.

    Declaration
    public bool AllowAppointmentDrag { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if allow appointment drag; otherwise, false.

    AppointmentMapping

    Gets or sets the appointment mapping for creating custom appointments.

    Declaration
    public AppointmentMapping AppointmentMapping { get; set; }
    Property Value
    Type
    AppointmentMapping

    AppointmentStyle

    Gets or sets the AppointmentStyle View of SfSchedule.

    Declaration
    public AppointmentStyle AppointmentStyle { get; set; }
    Property Value
    Type
    AppointmentStyle

    AppointmentViewLayout

    Gets or sets the AppointmentViewLayout View of SfSchedule.

    Declaration
    public ViewLayoutOptions AppointmentViewLayout { get; set; }
    Property Value
    Type
    ViewLayoutOptions

    CurrentTimeIndicatorColor

    Gets or sets the color of current time indicator.

    Declaration
    public Color CurrentTimeIndicatorColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of current time indicator.

    Remarks

    The current time indicator color is only applied if the ShowCurrentTimeIndicator is enabled.

    DayViewSettings

    Gets or sets the DayViewSettings View of SfSchedule.

    Declaration
    public DayViewSettings DayViewSettings { get; set; }
    Property Value
    Type
    DayViewSettings

    DragDropSettings

    Gets or sets the drag and drop settings.

    Declaration
    public DragDropSettings DragDropSettings { get; set; }
    Property Value
    Type Description
    DragDropSettings

    The drag and drop settings.

    EnableNavigation

    Gets or sets a value indicating whether enable or disable date navigation in the schedule using UI.

    Declaration
    public bool EnableNavigation { get; set; }
    Property Value
    Type
    System.Boolean

    FirstDayOfWeek

    Gets or sets the FirstDayOfWeek View of SfSchedule.

    Declaration
    public int FirstDayOfWeek { get; set; }
    Property Value
    Type
    System.Int32

    HeaderHeight

    Gets or sets the HeaderHeight View of SfSchedule.

    Declaration
    public double HeaderHeight { get; set; }
    Property Value
    Type
    System.Double

    HeaderStyle

    Gets or sets the HeaderStyle View of SfSchedule.

    Declaration
    public HeaderStyle HeaderStyle { get; set; }
    Property Value
    Type
    HeaderStyle

    InlineView

    Gets or sets the InlineView View of SfSchedule.

    Declaration
    public View InlineView { get; set; }
    Property Value
    Type
    Android.Views.View

    ItemsSource

    Gets or sets the itemsSource of SfSchedule.

    Declaration
    public IEnumerable ItemsSource { get; set; }
    Property Value
    Type
    System.Collections.IEnumerable

    Locale

    Gets or sets the Locale Which is used for Specifying the localization language for the Schedule.

    Declaration
    public Locale Locale { get; set; }
    Property Value
    Type
    Java.Util.Locale

    MaxDisplayDate

    Gets or sets the MaxDisplayDate View of SfSchedule.

    Declaration
    public Calendar MaxDisplayDate { get; set; }
    Property Value
    Type
    Java.Util.Calendar

    MinDisplayDate

    Gets or sets the MinDisplayDate View of SfSchedule.

    Declaration
    public Calendar MinDisplayDate { get; set; }
    Property Value
    Type
    Java.Util.Calendar

    MonthCellStyle

    Gets or sets the MonthCellStyle View of SfSchedule.

    Declaration
    public MonthCellStyle MonthCellStyle { get; set; }
    Property Value
    Type
    MonthCellStyle

    MonthCellViewLayout

    Gets or sets the MonthCellViewLayout View of SfSchedule.

    Declaration
    public ViewLayoutOptions MonthCellViewLayout { get; set; }
    Property Value
    Type
    ViewLayoutOptions

    MonthViewSettings

    Gets or sets the MonthViewSettings View of SfSchedule.

    Declaration
    public MonthViewSettings MonthViewSettings { get; set; }
    Property Value
    Type
    MonthViewSettings

    MoveToDate

    Gets or sets the MoveToDate View of SfSchedule.

    Declaration
    public Calendar MoveToDate { get; set; }
    Property Value
    Type
    Java.Util.Calendar

    NonWorkingDays

    Gets or sets the NonWorkingDays of the SfSchedule WorkWeek View.

    Declaration
    public ObservableCollection<int> NonWorkingDays { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<System.Int32>

    ScheduleDateHeaderFormat

    Gets or sets the ScheduleDateHeaderFormat View of SfSchedule.

    Declaration
    public string ScheduleDateHeaderFormat { get; set; }
    Property Value
    Type
    System.String

    ScheduleDateHeaderSize

    Gets or sets the ScheduleDateHeaderSize View of SfSchedule.

    Declaration
    public int ScheduleDateHeaderSize { get; set; }
    Property Value
    Type
    System.Int32

    ScheduleView

    Gets or sets the ScheduleView View of SfSchedule.

    Declaration
    public ScheduleView ScheduleView { get; set; }
    Property Value
    Type
    ScheduleView

    SelectedDate

    Gets or sets the selected date and time.

    Declaration
    public Calendar SelectedDate { get; set; }
    Property Value
    Type
    Java.Util.Calendar

    SelectionStyle

    Gets or sets the SelectionStyle View of SfSchedule.

    Declaration
    public SelectionStyle SelectionStyle { get; set; }
    Property Value
    Type
    SelectionStyle

    SelectionView

    Gets or sets the SelectionView View of SfSchedule.

    Declaration
    public View SelectionView { get; set; }
    Property Value
    Type
    Android.Views.View

    ShowCurrentTimeIndicator

    Gets or sets a value indicating whether the ShowCurrentTimeIndicator property which is used to enable or disable current time indicator in the schedule. It's applicable in day view, week view, work week view and timeline view.

    Declaration
    public bool ShowCurrentTimeIndicator { get; set; }
    Property Value
    Type
    System.Boolean

    SpecialTimeRegions

    Gets or sets the special time regions of the schedule.

    Declaration
    public ObservableCollection<TimeRegionSettings> SpecialTimeRegions { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<TimeRegionSettings>

    The special time regions.

    TimeInterval

    Gets or sets the TimeInterval View of SfSchedule.

    Declaration
    public double TimeInterval { get; set; }
    Property Value
    Type
    System.Double

    TimeIntervalHeight

    Gets or sets the TimeIntervalHeight View of SfSchedule.

    Declaration
    public double TimeIntervalHeight { get; set; }
    Property Value
    Type
    System.Double

    TimelineViewSettings

    Gets or sets the TimeLineViewSettings View of SfSchedule.

    Declaration
    public TimelineViewSettings TimelineViewSettings { get; set; }
    Property Value
    Type
    TimelineViewSettings

    TimeZone

    Gets or sets a time zone for the schedule control.

    Declaration
    public string TimeZone { get; set; }
    Property Value
    Type
    System.String

    TransitionMode

    Gets or sets the TransitionMode View of SfSchedule.

    Declaration
    public TransitionMode TransitionMode { get; set; }
    Property Value
    Type
    TransitionMode

    ViewHeaderHeight

    Gets or sets the ViewHeaderHeight View of SfSchedule.

    Declaration
    public double ViewHeaderHeight { get; set; }
    Property Value
    Type
    System.Double

    ViewHeaderStyle

    Gets or sets the ViewHeaderStyle View of SfSchedule.

    Declaration
    public ViewHeaderStyle ViewHeaderStyle { get; set; }
    Property Value
    Type
    ViewHeaderStyle

    VisibleDates

    Gets the VisibleDates View of SfSchedule.

    Declaration
    public ObservableCollection<Calendar> VisibleDates { get; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<Java.Util.Calendar>

    WeekViewSettings

    Gets or sets the WeekViewSettings View of SfSchedule.

    Declaration
    public WeekViewSettings WeekViewSettings { get; set; }
    Property Value
    Type
    WeekViewSettings

    WorkWeekViewSettings

    Gets or sets the WorkWeekViewSettings View of SfSchedule.

    Declaration
    public WorkWeekViewSettings WorkWeekViewSettings { get; set; }
    Property Value
    Type
    WorkWeekViewSettings

    Methods

    Backward()

    Moves to previous visible date.

    Declaration
    public void Backward()

    Dispose(Boolean)

    Dispose the specified events.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Indicates whether dispose or not

    Forward()

    Moves to next visible date.

    Declaration
    public void Forward()

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Called when this view should assign a size and position to all of its children.

    Declaration
    protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Boolean changed

    If set to true changed.

    System.Int32 left

    Left value of the layout

    System.Int32 top

    Top value of the layout

    System.Int32 right

    Right value of the layout

    System.Int32 bottom

    Bottom value of the layout

    OnMeasure(Int32, Int32)

    Called to determine the size requirements for this view and all of its children.

    Declaration
    protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
    Parameters
    Type Name Description
    System.Int32 widthMeasureSpec

    Width measure spec.

    System.Int32 heightMeasureSpec

    Height measure spec.

    UpdateSchedule()

    This Method Will update the UI view, UI Style and Appointments of Schedule UpdateSchedule()

    Declaration
    public void UpdateSchedule()

    Events

    AppointmentDragOver

    Occurs when appointment drag over.

    Declaration
    public event EventHandler<AppointmentDragEventArgs> AppointmentDragOver
    Event Type
    Type
    System.EventHandler<AppointmentDragEventArgs>

    AppointmentDragStarting

    Occurs when appointment drag starting.

    Declaration
    public event EventHandler<AppointmentDragStartingEventArgs> AppointmentDragStarting
    Event Type
    Type
    System.EventHandler<AppointmentDragStartingEventArgs>

    AppointmentDrop

    Occurs when appointment drag over.

    Declaration
    public event EventHandler<AppointmentDropEventArgs> AppointmentDrop
    Event Type
    Type
    System.EventHandler<AppointmentDropEventArgs>

    AppointmentLoaded

    Occurs when appointment loaded.

    Declaration
    public event EventHandler<AppointmentLoadedEventArgs> AppointmentLoaded
    Event Type
    Type
    System.EventHandler<AppointmentLoadedEventArgs>

    CellDoubleTapped

    Occurs when double tap on the cell or appointment inside the cell.

    Declaration
    public event EventHandler<CellTappedEventArgs> CellDoubleTapped
    Event Type
    Type
    System.EventHandler<CellTappedEventArgs>
    Remarks

    ScheduleTappedEventArgs.Appointment will have value when appointment gets tapped, otherwise it will be null.

    CellLongPressed

    Occurs when long tap on the cell or appointment inside the cell.

    Declaration
    public event EventHandler<CellTappedEventArgs> CellLongPressed
    Event Type
    Type
    System.EventHandler<CellTappedEventArgs>
    Remarks

    ScheduleTappedEventArgs.Appointment will have value when appointment gets tapped, otherwise it will be null.

    CellTapped

    Occurs when tap on the cell or appointment inside the cell.

    Declaration
    public event EventHandler<CellTappedEventArgs> CellTapped
    Event Type
    Type
    System.EventHandler<CellTappedEventArgs>
    Remarks

    ScheduleTappedEventArgs.Appointment will have value when appointment gets tapped, otherwise it will be null.

    HeaderTapped

    Occurs when tap the header of schedule.

    Declaration
    public event EventHandler<HeaderTappedEventArgs> HeaderTapped
    Event Type
    Type
    System.EventHandler<HeaderTappedEventArgs>
    Remarks

    HeaderTappedEventArgs will have value when schedule header gets tapped, otherwise it will be null.

    MonthCellLoaded

    Occurs when month cell loaded.

    Declaration
    public event EventHandler<MonthCellLoadedEventArgs> MonthCellLoaded
    Event Type
    Type
    System.EventHandler<MonthCellLoadedEventArgs>

    MonthInlineAppointmentLoaded

    Occurs when month inline appointment loaded.

    Declaration
    public event EventHandler<MonthInlineAppointmentLoadedEventArgs> MonthInlineAppointmentLoaded
    Event Type
    Type
    System.EventHandler<MonthInlineAppointmentLoadedEventArgs>

    MonthInlineAppointmentTapped

    Occurs when month inline appointment tapped.

    Declaration
    public event EventHandler<MonthInlineAppointmentTappedEventArgs> MonthInlineAppointmentTapped
    Event Type
    Type
    System.EventHandler<MonthInlineAppointmentTappedEventArgs>

    MonthInlineLoaded

    Occurs when month inline loaded.

    Declaration
    public event EventHandler<MonthInlineLoadedEventArgs> MonthInlineLoaded
    Event Type
    Type
    System.EventHandler<MonthInlineLoadedEventArgs>

    ScheduleViewChanged

    Occurs when schedule view changed.

    Declaration
    public event EventHandler<ScheduleViewChangedEventArgs> ScheduleViewChanged
    Event Type
    Type
    System.EventHandler<ScheduleViewChangedEventArgs>

    ViewHeaderTapped

    Occurs when tap the view header of schedule.

    Declaration
    public event EventHandler<ViewHeaderTappedEventArgs> ViewHeaderTapped
    Event Type
    Type
    System.EventHandler<ViewHeaderTappedEventArgs>
    Remarks

    ViewHeaderTappedEventArgs will have value when schedule view header gets tapped, otherwise it will be null.

    VisibleDatesChanged

    Occurs when visible dates changed.

    Declaration
    public event EventHandler<VisibleDatesChangedEventArgs> VisibleDatesChanged
    Event Type
    Type
    System.EventHandler<VisibleDatesChangedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved