menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SchedulerDayHeaderSettings - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SchedulerDayHeaderSettings

    Represents a class which is used to customize the day header of agenda view in the SfScheduler.

    Inheritance
    System.Object
    SchedulerDayHeaderSettings
    Namespace: Syncfusion.Maui.Scheduler
    Assembly: Syncfusion.Maui.Scheduler.dll
    Syntax
    public class SchedulerDayHeaderSettings : Element, IThemeElement

    Constructors

    SchedulerDayHeaderSettings()

    Initializes a new instance of the SchedulerDayHeaderSettings class.

    Declaration
    public SchedulerDayHeaderSettings()

    Fields

    BackgroundProperty

    Identifies the Background dependency property.

    Declaration
    public static readonly BindableProperty BackgroundProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Background dependency property.

    DateTextStyleProperty

    Identifies the DateTextStyle dependency property.

    Declaration
    public static readonly BindableProperty DateTextStyleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for DateTextStyle dependency property.

    DayFormatProperty

    Identifies the DayFormat dependency property.

    Declaration
    public static readonly BindableProperty DayFormatProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for DayFormat dependency property.

    DayTextStyleProperty

    Identifies the DayTextStyle dependency property.

    Declaration
    public static readonly BindableProperty DayTextStyleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for DayTextStyle dependency property.

    WidthProperty

    Identifies the Width dependency property.

    Declaration
    public static readonly BindableProperty WidthProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Width dependency property.

    Properties

    Background

    Gets or sets the header background to customize the default background of the day header in agenda view.

    Declaration
    public Brush Background { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    The default value is Microsoft.Maui.Controls.Brush.Transparent.

    Remarks

    This property will be applicable when the scheduler view set as Agenda.

    Examples

    The below examples shows, how to use the Background property of SchedulerDayHeaderSettings of AgendaView in the SfScheduler.

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="scheduler"
                           View="Agenda" >
       <scheduler:SfScheduler.AgendaView>
           <scheduler:SchedulerAgendaView>
               <scheduler:SchedulerAgendaView.DayHeaderSettings>
                   <scheduler:SchedulerDayHeaderSettings Background="LightGreen" />
               </scheduler:SchedulerAgendaView.DayHeaderSettings>
           </scheduler:SchedulerAgendaView>
       </scheduler:SfScheduler.AgendaView>
    </scheduler:SfScheduler>
    this.scheduler.View = SchedulerView.Agenda;
    this.scheduler.AgendaView.DayHeaderSettings.Background = Brush.LightGreen;
    See Also
    Width
    DayFormat
    DayTextStyle
    DateTextStyle

    DateTextStyle

    Gets or sets the style of agenda date header view text, that used to customize the text color, font, font size, font family and font attributes.

    Declaration
    public SchedulerTextStyle DateTextStyle { get; set; }
    Property Value
    Type
    SchedulerTextStyle
    Remarks

    This property doesn't applicable for today date text.

    Examples

    The below examples shows, how to use the DateTextStyle property of SchedulerDayHeaderSettings of AgendaView in the SfScheduler.

    var dateTextStyle = new SchedulerTextStyle()
    {
       TextColor = Colors.Red,
       FontSize = 12,
    };
    this.scheduler.View = SchedulerView.Agenda;
    this.scheduler.AgendaView.DayHeaderSettings.DateTextStyle = dateTextStyle;
    See Also
    Width
    Background
    DayFormat
    DayTextStyle
    TodayTextStyle

    DayFormat

    Gets or sets the format to customize day header day text in agenda view of the SfScheduler

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

    The default value is "MMM, ddd".

    Examples

    The below examples shows, how to use the DayFormat property of SchedulerDayHeaderSettings of AgendaView in the SfScheduler.

    this.scheduler.View = SchedulerView.Agenda;
    this.scheduler.AgendaView.DayHeaderSettings.DayFormat = "MM, dddd";
    See Also
    Width
    Background
    DayTextStyle
    DateTextStyle

    DayTextStyle

    Gets or sets the style of agenda day header view text, that used to customize the text color, font, font size, font family and font attributes.

    Declaration
    public SchedulerTextStyle DayTextStyle { get; set; }
    Property Value
    Type
    SchedulerTextStyle
    Remarks

    This property doesn't applicable for today day text.

    Examples

    The below examples shows, how to use the DayTextStyle property of SchedulerDayHeaderSettings of AgendaView in the SfScheduler.

    var dayTextStyle = new SchedulerTextStyle()
    {
       TextColor = Colors.Red,
       FontSize = 12,
    };
    this.scheduler.View = SchedulerView.Agenda;
    this.scheduler.AgendaView.DayHeaderSettings.DayTextStyle = dayTextStyle;
    See Also
    Width
    Background
    DayFormat
    DateTextStyle
    TodayTextStyle

    Width

    Gets or sets the width to customize the default width property of the day header in agenda view of the scheduler.

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

    The default value of DesktopUI is 150 and MobileUI is 50.

    Remarks

    This property will be applicable when the scheduler view set as Agenda.

    Examples

    The below examples shows, how to use the Width property of SchedulerDayHeaderSettings of AgendaView in the SfScheduler.

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="scheduler"
                           View="Agenda" >
       <scheduler:SfScheduler.AgendaView>
           <scheduler:SchedulerAgendaView>
               <scheduler:SchedulerAgendaView.DayHeaderSettings>
                   <scheduler:SchedulerDayHeaderSettings Width="100" />
               </scheduler:SchedulerAgendaView.DayHeaderSettings>
           </scheduler:SchedulerAgendaView>
       </scheduler:SfScheduler.AgendaView>
    </scheduler:SfScheduler>
    this.scheduler.View = SchedulerView.Agenda;
    this.scheduler.AgendaView.DayHeaderSettings.Width = 100;
    See Also
    Background
    DayFormat
    DayTextStyle
    DateTextStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved