WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TimelineViewSettings

    Show / Hide Table of Contents

    Class TimelineViewSettings

    Represents a class which is used to configure all the properties of TimelineView.

    Inheritance
    System.Object
    ViewSettingsBase
    TimeSlotViewSettings
    TimelineViewSettings
    Implements
    System.IDisposable
    Inherited Members
    TimeSlotViewSettings.StartHour
    TimeSlotViewSettings.EndHour
    TimeSlotViewSettings.DaysCount
    TimeSlotViewSettings.NonWorkingDays
    TimeSlotViewSettings.ShowCurrentTimeIndicator
    TimeSlotViewSettings.CurrentTimeIndicatorStroke
    TimeSlotViewSettings.TimeInterval
    TimeSlotViewSettings.TimeRulerFormat
    TimeSlotViewSettings.ViewHeaderDateFormat
    TimeSlotViewSettings.TimeRulerCellTemplate
    TimeSlotViewSettings.TimeIntervalHeight
    TimeSlotViewSettings.TimeIntervalSize
    TimeSlotViewSettings.TimeRulerSize
    TimeSlotViewSettings.MinimumAppointmentDuration
    TimeSlotViewSettings.SpecialTimeRegions
    TimeSlotViewSettings.SpecialTimeRegionTemplate
    TimeSlotViewSettings.SpecialTimeRegionTemplateSelector
    ViewSettingsBase.Dispose()
    ViewSettingsBase.VisibleResourceCount
    ViewSettingsBase.ResourceHeaderSize
    ViewSettingsBase.AppointmentTemplate
    ViewSettingsBase.AppointmentTemplateSelector
    ViewSettingsBase.ViewHeaderDayFormat
    ViewSettingsBase.ViewHeaderHeight
    ViewSettingsBase.ViewHeaderTemplate
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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

    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 false.

    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

    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 50 if RowAutoHeight is true.

    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
    RowAutoHeight
    VisibleResourceCount

    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 Description
    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).

    Overrides
    TimeSlotViewSettings.Dispose(Boolean)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved