menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SchedulerWeekNumberStyle - API Reference

    Show / Hide Table of Contents

    Class SchedulerWeekNumberStyle

    Gets or sets properties which allows to customize the week number style of the SfScheduler.

    Inheritance
    System.Object
    SchedulerWeekNumberStyle
    Namespace: Syncfusion.Maui.Scheduler
    Assembly: Syncfusion.Maui.Scheduler.dll
    Syntax
    public class SchedulerWeekNumberStyle : BindableObject

    Constructors

    SchedulerWeekNumberStyle()

    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 Description
    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
    ShowWeekNumber
    WeekNumberStyle
    TextStyle

    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 Description
    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;
    See Also
    ShowWeekNumber
    WeekNumberStyle
    Background
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved