Class CalendarMonthHeaderView
Represents a class which is used to customize all the properties of view header view of the SfCalendar.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.Calendar
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class CalendarMonthHeaderView : Element, IThemeElement
Constructors
CalendarMonthHeaderView()
Initializes a new instance of the CalendarMonthHeaderView class.
Declaration
public CalendarMonthHeaderView()
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. |
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 view 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.MonthView.HeaderView.Background = Colors.Yellow;
See Also
Height
Gets or sets the value to specify the height of view header view on SfCalendar.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value of Height is 30d. |
Examples
The following code demonstrates, how to use the TextFormat property in the calendar
this.Calendar.MonthView.HeaderView.Height = "50";
See Also
TextFormat
Gets or sets the format of the view header text in calendar month view.
Declaration
public string TextFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value of TextFormat is "ddddd". |
Remarks
The format "ddddd" stands for showing two characters of the day of week text for Gregorian calendar. Other than Gregorian calendar, it shown like "dddd" format.
Examples
The following code demonstrates, how to use the TextFormat property in the calendar
this.Calendar.MonthView.HeaderView.TextFormat = "ddddd";
See Also
TextStyle
Gets or sets the text style of the view 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.MonthView.HeaderView.TextStyle = headerTextStyle;