Class SchedulerTimelineView
Represents a class which is used to configure all the properties of timeline day, timeline week, timeline workweek and timeline month views of the SfScheduler.
Inherited Members
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class SchedulerTimelineView : SchedulerTimeSlotView, IThemeElement
Constructors
SchedulerTimelineView()
Initializes a new instance of the SchedulerTimelineView class.
Declaration
public SchedulerTimelineView()
Fields
ShowMonthTimeRegionsProperty
Identifies the ShowMonthTimeRegions dependency property.
Declaration
public static readonly BindableProperty ShowMonthTimeRegionsProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for ShowMonthTimeRegions dependency property. |
TimeIntervalWidthProperty
Identifies the TimeIntervalWidth dependency property.
Declaration
public static readonly BindableProperty TimeIntervalWidthProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for TimeIntervalWidth dependency property. |
TimeRulerHeightProperty
Identifies the TimeRulerHeight dependency property.
Declaration
public static readonly BindableProperty TimeRulerHeightProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for TimeRulerHeight dependency property. |
Properties
ShowMonthTimeRegions
Gets or sets a value indicating whether to show the special time regions in the timeline month view of the SfScheduler.
Declaration
public bool ShowMonthTimeRegions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is false, which means time regions are not shown in the timeline month view. |
Remarks
When set to true, this property enables the rendering of time regions in timeline month view as date-column-spanning blocks.
Time regions are rendered based on the Syncfusion.Maui.Scheduler.SchedulerTimeRegion.ActualStartTime and Syncfusion.Maui.Scheduler.SchedulerTimeRegion.ActualEndTime dates (time-of-day values are ignored).
This property only applies when the view is set to TimelineMonth.
The Background, Text, and TextStyle properties control the visual appearance of the regions.
Examples
The below example shows how to use the ShowMonthTimeRegions property of SchedulerTimelineView in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="TimelineMonth">
<schedule:SfScheduler.TimelineView>
<schedule:SchedulerTimelineView ShowMonthTimeRegions = "True" />
</schedule:SfScheduler.TimelineView>
</schedule:SfScheduler>
See Also
TimeIntervalWidth
Gets or sets the width for each time slot cell to layout within this in timeline views of the SfScheduler.
Declaration
public double TimeIntervalWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 50 used to specify the time interval width for the timeline views. |
Remarks
The time interval width can be adjusted based on screen width by changing the value of this property to -1. It will auto-fit to the screen width.
Examples
The below examples shows, how to use the TimeIntervalWidth property of SchedulerTimelineView in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="TimelineWeek">
<schedule:SfScheduler.TimelineView>
<schedule:SchedulerTimelineView TimeIntervalWidth = "200" />
</schedule:SfScheduler.TimelineView>
</schedule:SfScheduler>
See Also
TimeRulerHeight
Gets or sets the height for the time ruler view to layout within this in timeline views of the SfScheduler.
Declaration
public double TimeRulerHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 30 used to specify the time ruler height for timeline views. |
Remarks
It will be applicable to TimelineDay, TimelineWeek and TimelineWorkWeek views only.
Examples
The below examples shows, how to use the TimeRulerHeight property of SchedulerTimelineView in the SfScheduler.
<schedule:SfScheduler x:Name="Scheduler"
View="TimelineWeek">
<schedule:SfScheduler.TimelineView>
<schedule:SchedulerTimelineView TimeRulerHeight = "100" />
</schedule:SfScheduler.TimelineView>
</schedule:SfScheduler>