menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CalendarWeekNumberStyle - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CalendarWeekNumberStyle

    Represents a class which is used to customize the week number style on month view of the SfCalendar.

    Inheritance
    System.Object
    CalendarWeekNumberStyle
    Namespace: Syncfusion.Maui.Calendar
    Assembly: Syncfusion.Maui.Calendar.dll
    Syntax
    public class CalendarWeekNumberStyle : Element, IThemeElement

    Constructors

    CalendarWeekNumberStyle()

    Initializes a new instance of the CalendarWeekNumberStyle class.

    Declaration
    public CalendarWeekNumberStyle()

    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.

    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 week number view in SfCalendar.

    Declaration
    public Brush Background { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    The default value of Background is "#2121210A".

    Examples

    The following code demonstrates, how to use the Background property in the calendar

    this.Calendar.MonthView.WeekNumberStyle.Background = Colors.Grey;
    See Also
    MonthView
    WeekNumberStyle
    ShowWeekNumber

    TextStyle

    Gets or sets the text style of the week number 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 weekTextStyle = new CalendarTextStyle()
     {
         TextColor = Colors.Blue,
         FontSize = 14,
     };
    this.Calendar.MonthView.WeekNumberStyle.TextStyle = weekTextStyle;
    See Also
    MonthView
    WeekNumberStyle
    ShowWeekNumber
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved