Class SchedulerViewHeaderSettings
Represents a class which is used to customize all the properties of view header in the sfscheduler.
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class SchedulerViewHeaderSettings : SchedulerHeaderSettingsBase, IThemeElement
Constructors
SchedulerViewHeaderSettings()
Initializes a new instance of the SchedulerViewHeaderSettings class.
Declaration
public SchedulerViewHeaderSettings()
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. |
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. |
Properties
Background
Gets or sets the view header background to customize the default background of the view header in the scheduler.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value is Microsoft.Maui.Controls.Brush.Transparent. |
Remarks
It will be applicable to all View.
Examples
The below examples shows, how to set the Background property of the SchedulerViewHeaderSettings in the SfScheduler.
this.Scheduler.MonthView.ViewHeaderSettings.Background = Brush.Blue;
this.Scheduler.DaysView.ViewHeaderSettings.Background = Brush.Blue;
this.Scheduler.TimelineView.ViewHeaderSettings.Background = Brush.Blue;
See Also
DateFormat
Gets or sets a view header date format of the SfScheduler.
Declaration
public string DateFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "dd". |
Remarks
This property doesn't applicable when the scheduler view set as Month.
Examples
The below examples shows, how to use the DateFormat property of SchedulerViewHeaderSettings in the SfScheduler.
this.Scheduler.DaysView.ViewHeaderSettings.DateFormat = "ddd";
this.Scheduler.TimelineView.ViewHeaderSettings.DateFormat = "MMMM dd";
See Also
DateTextStyle
Gets or sets the style of view header date 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 when the scheduler view set as Month and also not applicable for today date text.
Examples
The below examples shows, how to use the DateTextStyle to the SfScheduler.
var dateTextStyle = new SchedulerTextStyle()
{
TextColor = Colors.Red,
FontSize = 12,
};
this.Scheduler.DaysView.ViewHeaderSettings.DateTextStyle = dateTextStyle;
this.Scheduler.TimelineView.ViewHeaderSettings.DateTextStyle = dateTextStyle;
See Also
DayFormat
Gets or sets a view header day format of the SfScheduler.
Declaration
public string DayFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "ddd". |
Examples
The below examples shows, how to use the DayFormat property of SchedulerViewHeaderSettings in the SfScheduler.
this.Scheduler.MonthView.ViewHeaderSettings.DayFormat = "dddd";
this.Scheduler.DaysView.ViewHeaderSettings.DayFormat = "dddd";
this.Scheduler.TimelineView.ViewHeaderSettings.DayFormat = "dddd";
See Also
DayTextStyle
Gets or sets the style of view header day 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 to the SfScheduler.
var dayTextStyle = new SchedulerTextStyle()
{
TextColor = Colors.Red,
FontSize = 12,
};
this.Scheduler.MonthView.ViewHeaderSettings.DayTextStyle = dayTextStyle;
this.Scheduler.DaysView.ViewHeaderSettings.DayTextStyle = dayTextStyle;
this.Scheduler.TimelineView.ViewHeaderSettings.DayTextStyle = dayTextStyle;