menu

MAUI

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

    Show / Hide Table of Contents

    Class CalendarHeaderView

    Represents a class which is used to customize all the properties of header view of the SfCalendar.

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

    Constructors

    CalendarHeaderView()

    Initializes a new instance of the CalendarHeaderView class.

    Declaration
    public CalendarHeaderView()

    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.

    HeightProperty

    Identifies the Height dependency property.

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

    The identifier for Height dependency property.

    ShowNavigationArrowsProperty

    Identifies the ShowNavigationArrows dependency property.

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

    The identifier for ShowNavigationArrows dependency property.

    TextFormatProperty

    Identifies the TextFormat dependency property.

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

    The identifier for TextFormat dependency property.

    TextStyleProperty

    Identifies the TextStyle dependency property.

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

    The identifier for TextStyle dependency property.

    Properties

    Background

    Gets or sets the background of the header view in SfCalendar.

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

    The Default value of Background is Transparent.

    Examples

    The following code demonstrates, how to use the Background property in the calendar

    this.Calendar.HeaderView.Background = Colors.Grey;

    Height

    Gets or sets the value to specify the height of header view on SfCalendar.

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

    The default value of Height is 35.

    Examples

    The following code demonstrates, how to use the Height property in the calendar

    this.Calendar.HeaderView.Height = 50;
    See Also
    HeaderView

    ShowNavigationArrows

    Gets or sets a value indicating whether to displays the navigation arrows on the header view of the SfCalendar.

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

    The Default value of ShowNavigationArrows is true.

    Examples

    The following code demonstrates, how to use the ShowNavigationArrows property in the calendar

    this.Calendar.HeaderView.ShowNavigationArrows = true;

    TextFormat

    Gets or sets the format of the header text in calendar.

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

    The default value of TextFormat is "string.Empty".

    Remarks

    It will be applicable to all View. If it is empty then the header text will render based on View.

    Examples

    The following code demonstrates, how to use the TextFormat property in the calendar

    this.Calendar.HeaderView.TextFormat = "MMM yy";
    See Also
    HeaderView

    TextStyle

    Gets or sets the text style of the header text in SfCalendar.

    Declaration
    public CalendarTextStyle TextStyle { get; set; }
    Property Value
    Type
    CalendarTextStyle
    Examples

    The following code demonstrates, how to use the TextStyle property in the calendar

     var headerTextStyle = new CalendarTextStyle()
     {
         TextColor = Colors.Blue,
         FontSize = 14,
     };
    this.Calendar.HeaderView.TextStyle = headerTextStyle;
    See Also
    HeaderView
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved