Class TimelineViewSettings
Represents a class which is used to configure all the properties of TimelineView.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class TimelineViewSettings : TimeSlotViewSettings, IDisposable
Constructors
TimelineViewSettings()
Initializes a new instance of the TimelineViewSettings class.
Declaration
public TimelineViewSettings()
Properties
CellBottomPadding
Gets or sets the option to include spacing between a cell's appointment and its border on the bottom side to interact with a scheduler cell that contains appointments.
Declaration
public int CellBottomPadding { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is 10. |
Remarks
This property is applicable only when the ItemsSource property is enabled or when appointments are present in the scheduler.
Examples
#C#
this.scheduler.TimelineViewSettings.CellBottomPadding = 5;
#Xaml
<scheduler:SfScheduler x:Name="scheduler">
<scheduler:SfScheduler.TimelineViewSettings>
<scheduler:TimelineViewSettings CellBottomPadding = "5" />
</scheduler:SfScheduler.TimelineViewSettings>
</scheduler:SfScheduler>
RowAutoHeight
Gets or sets a value indicating whether to enable row auto height adjustments when the ResourceGroupType is Resource in a scheduler on timeline views such as TimelineDay , TimelineWeek , TimelineWorkWeek, and TimelineMonth based on the number of appointments present on the time slot.
Declaration
public bool RowAutoHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Remarks
If row auto height is enabled then the VisibleResourceCount will not be considered. If resources have no appointments, then the RowMinHeight will be considered as default row height.
Examples
#C#
this.Schedule.TimelineViewSettings.RowAutoHeight= true;
#Xaml
<?xml version = "1.0" encoding="utf-8"?>
<syncfusion:SfScheduler x:Name="Schedule" >
<syncfusion:SfScheduler.TimelineViewSettings>
<syncfusion:TimelineViewSettings RowAutoHeight= "True" />
</ syncfusion:SfScheduler.TimelineViewSettings>
</syncfusion:SfScheduler>
See Also
RowMinHeight
Gets or sets a value to set the minimum row height when the ResourceGroupType is Resource in a scheduler on timeline views such as TimelineDay , TimelineWeek , TimelineWorkWeek, and TimelineMonth.
Declaration
public double RowMinHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is |
Remarks
If the RowAutoHeight is set to false and VisibleResourceCount is set, then the default value is set to available size divided by the visible resource count value. If minimum row height is set to larger than the available row height based on the VisibleResourceCount, then the VisibleResourceCount will not be considered.
Examples
#C#
this.Schedule.TimelineViewSettings.RowAutoHeight = true;
this.Schedule.TimelineViewSettings.RowMinHeight= 100;
#Xaml
<?xml version = "1.0" encoding="utf-8"?>
<syncfusion:SfScheduler x:Name="Schedule" >
<syncfusion:SfScheduler.TimelineViewSettings>
<syncfusion:TimelineViewSettings RowAutoHeight = "True" RowMinHeight= "100" />
</ syncfusion:SfScheduler.TimelineViewSettings>
</syncfusion:SfScheduler>
See Also
TimelineAppointmentHeight
Gets or sets the TimelineAppointmentHeight for Timeline view to customize the default height of Appointment.
Declaration
public double TimelineAppointmentHeight { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Dispose(Boolean)
Disposes all the resources used by the TimelineViewSettings class.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a System.GC.SuppressFinalize(System.Object). |