Class SchedulerWeekNumberStyle
Gets or sets properties which allows to customize the week number style of the SfScheduler.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class SchedulerWeekNumberStyle : Element, IThemeElement
Constructors
SchedulerWeekNumberStyle()
Initializes a new instance of the SchedulerWeekNumberStyle class.
Declaration
public SchedulerWeekNumberStyle()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Identifies the Background bindable property. |
TextStyleProperty
Identifies the TextStyle dependency property.
Declaration
public static readonly BindableProperty TextStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Identifies the TextStyle bindable property. |
Properties
Background
Gets or sets the background color for the week number cell view, that used to customize the background color.
Declaration
public Brush Background { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Remarks
It is not applicable for the TimelineMonth.
Examples
The below examples shows, how to set the Background to the week number cell of the SfScheduler.
this.Scheduler.ShowWeekNumber = true;
this.Scheduler.WeekNumberStyle.Background = Brush.Red;
See Also
TextStyle
Gets or sets the style of week number 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
It is not applicable for the TimelineMonth.
Examples
The below examples shows, how to use the TextStyle to the month cell of the SfScheduler.
var weekNumberTextStyle = new SchedulerTextStyle()
{
TextColor = Colors.Blue,
FontSize = 12,
};
this.Scheduler.WeekNumberStyle.TextStyle = weekNumberTextStyle;