Class CalendarHeaderView
Represents a class which is used to customize all the properties of header view of the SfCalendar.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.Calendar
Assembly: Syncfusion.Maui.Toolkit.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
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
Examples
The following code demonstrates, how to use the TextFormat property in the calendar
this.Calendar.HeaderView.TextFormat = "MMM yy";
  See Also
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;