Class SchedulerMonthHeaderSettings
Represents a class which is used to customize the month header of agenda view in the SfScheduler.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class SchedulerMonthHeaderSettings : Element, IThemeElement
Constructors
SchedulerMonthHeaderSettings()
Initializes a new instance of the SchedulerMonthHeaderSettings class.
Declaration
public SchedulerMonthHeaderSettings()
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. |
DateFormatProperty
Identifies the DateFormat dependency property.
Declaration
public static readonly BindableProperty DateFormatProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for DateFormat 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. |
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 header background to customize the default background of the month header in agenda view.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value is "new SolidColorBrush(Color.FromRgba(17, 178, 199, 255))"/>. |
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 SchedulerMonthHeaderSettings of AgendaView in the SfScheduler.
<scheduler:SfScheduler x:Name="scheduler"
View="Agenda">
<scheduler:SfScheduler.AgendaView>
<scheduler:SchedulerAgendaView>
<scheduler:SchedulerAgendaView.MonthHeaderSettings>
<scheduler:SchedulerMonthHeaderSettings Background="LightGreen" />
</scheduler:SchedulerAgendaView.MonthHeaderSettings>
</scheduler:SchedulerAgendaView>
</scheduler:SfScheduler.AgendaView>
</scheduler:SfScheduler>
See Also
DateFormat
Gets or sets the format to customize month header date text in agenda view of the SfScheduler
Declaration
public string DateFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "MMMM yyyy". |
Examples
The below examples shows, how to use the DateFormat property of SchedulerMonthHeaderSettings of AgendaView in the SfScheduler.
this.scheduler.View = SchedulerView.Agenda;
this.scheduler.AgendaView.MonthHeaderSettings.DateFormat = "MMM yyy";
See Also
Height
Gets or sets the height to customize the default height property of the month header in agenda view of the scheduler.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 150. |
Remarks
This property will be applicable when the scheduler view set as Agenda.
Examples
The below examples shows, how to use the Height property of SchedulerMonthHeaderSettings of AgendaView in the SfScheduler.
<scheduler:SfScheduler x:Name="scheduler"
View="Agenda">
<scheduler:SfScheduler.AgendaView>
<scheduler:SchedulerAgendaView>
<scheduler:SchedulerAgendaView.MonthHeaderSettings>
<scheduler:SchedulerMonthHeaderSettings Height="200" />
</scheduler:SchedulerAgendaView.MonthHeaderSettings>
</scheduler:SchedulerAgendaView>
</scheduler:SfScheduler.AgendaView>
</scheduler:SfScheduler>
See Also
TextStyle
Gets or sets the style of agenda month header view text, that used to customize the text color, font, font size, font family and font attributes.
Declaration
public SchedulerTextStyle TextStyle { 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 TextStyle property of SchedulerMonthHeaderSettings of AgendaView in the SfScheduler.
var textStyle = new SchedulerTextStyle()
{
TextColor = Colors.Red,
FontSize = 12,
};
this.scheduler.View = SchedulerView.Agenda;
this.scheduler.AgendaView.MonthHeaderSettings.TextStyle = textStyle;