MAUI

User Guide Demos Support Forums Download
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SchedulerMonthCellStyle

    Show / Hide Table of Contents

    Class SchedulerMonthCellStyle

    Gets or sets properties which allows to customize the month cell in month view style of the SfScheduler.

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

    Constructors

    SchedulerMonthCellStyle()

    Declaration
    public SchedulerMonthCellStyle()

    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.

    LeadingMonthBackgroundProperty

    Identifies the LeadingMonthBackground dependency property.

    Declaration
    public static readonly BindableProperty LeadingMonthBackgroundProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for LeadingMonthBackground dependency property.

    LeadingMonthTextStyleProperty

    Identifies the LeadingMonthTextStyle dependency property.

    Declaration
    public static readonly BindableProperty LeadingMonthTextStyleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for LeadingMonthTextStyle 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.

    TodayBackgroundProperty

    Identifies the TodayBackground dependency property.

    Declaration
    public static readonly BindableProperty TodayBackgroundProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TodayBackground dependency property.

    TrailingMonthBackgroundProperty

    Identifies the TrailingMonthBackground dependency property.

    Declaration
    public static readonly BindableProperty TrailingMonthBackgroundProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TrailingMonthBackground dependency property.

    TrailingMonthTextStyleProperty

    Identifies the TrailingMonthTextStyle dependency property.

    Declaration
    public static readonly BindableProperty TrailingMonthTextStyleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TrailingMonthTextStyle dependency property.

    Properties

    Background

    Gets or sets the background color for the month cell of month view, that used to customize the background color.

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

    It will be applicable to Month only.

    Examples

    The below examples shows, how to set the Background to the month cell of the SfScheduler.

    this.Scheduler.MonthView.CellStyle.Background = Brush.LightSkyBlue;
    See Also
    Month
    TodayBackground
    TrailingMonthBackground
    LeadingMonthBackground
    TextStyle

    LeadingMonthBackground

    Gets or sets the background color for the leading month cell of month view, that used to customize the background color.

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

    The default value of LeadingMonthBackground is Microsoft.Maui.Controls.Brush.Transparent.

    Remarks

    It will be applicable to Month only.

    Examples

    The below examples shows, how to set the LeadingMonthBackground to the month cell of the SfScheduler.

    this.Scheduler.MonthView.CellStyle.LeadingMonthBackground = Brush.LightGreen;
    See Also
    Month
    Background
    TodayBackground
    TrailingMonthBackground
    TextStyle

    LeadingMonthTextStyle

    Gets or sets the style of leading month cell text, that used to customize the text color, font, font size, font family and font attributes.

    Declaration
    public SchedulerTextStyle LeadingMonthTextStyle { get; set; }
    Property Value
    Type Description
    SchedulerTextStyle

    The default value of TextColor is Microsoft.Maui.Graphics.Colors.LightGray and the default value of FontSize will be changed based on the platform. The minimum value of FontSize is 10 for all platforms.

    • In MACCATALYST, IPad and ANDROID Tablet, The default font size is 18.
    • In WINDOWS and IOS, The default font size is 16.
    • In ANDROID Phone, The default font size is 14.
    Remarks

    It will be applicable to all View.

    Examples

    The below examples shows, how to use the LeadingMonthTextStyle to the month cell of the SfScheduler.

     var leadingMonthTextStyle = new SchedulerTextStyle()
     {
         TextColor = Colors.Red,
         FontSize = 14,
     };
     this.Scheduler.MonthView.CellStyle.LeadingMonthTextStyle = leadingMonthTextStyle;
    See Also
    Background
    TextStyle
    TrailingMonthTextStyle

    TextStyle

    Gets or sets the style of month cell 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

    The default value of TextColor is Microsoft.Maui.Graphics.Colors.Black and the default value of FontSize will be changed based on the platform. The minimum value of FontSize is 10 for all platforms.

    • In MACCATALYST, IPad and ANDROID Tablet, The default font size is 18.
    • In WINDOWS and IOS, The default font size is 16.
    • In ANDROID Phone, The default font size is 14.
    Remarks

    It will be applicable to all View.

    Examples

    The below examples shows, how to use the TextStyle to the month cell of the SfScheduler.

     var monthCellStyle = new SchedulerTextStyle()
     {
         TextColor = Colors.Blue,
         FontSize = 14,
     };
     this.Scheduler.MonthView.CellStyle.TextStyle = monthCellStyle;
    See Also
    Background
    TrailingMonthTextStyle
    LeadingMonthTextStyle

    TodayBackground

    Gets or sets the background color for the today month cell of month view, that used to customize the background color.

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

    The default value of TodayBackground is Microsoft.Maui.Controls.Brush.Transparent.

    Remarks

    It will be applicable to Month only.

    Examples

    The below examples shows, how to set the TodayBackground to the month cell of the SfScheduler.

    this.Scheduler.MonthView.CellStyle.TodayBackground = Brush.LightBlue;
    See Also
    Month
    Background
    TrailingMonthBackground
    LeadingMonthBackground
    TextStyle

    TrailingMonthBackground

    Gets or sets the background color for the trailing month cell of month view, that used to customize the background color.

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

    The default value of TrailingMonthBackground is Microsoft.Maui.Controls.Brush.Transparent.

    Remarks

    It will be applicable to Month only.

    Examples

    The below examples shows, how to set the TrailingMonthBackground to the month cell of the SfScheduler.

    this.Scheduler.MonthView.CellStyle.TrailingMonthBackground = Brush.LightGreen;
    See Also
    Month
    Background
    TodayBackground
    LeadingMonthBackground
    TextStyle

    TrailingMonthTextStyle

    Gets or sets the style of trailing month cell text, that used to customize the text color, font, font size, font family and font attributes.

    Declaration
    public SchedulerTextStyle TrailingMonthTextStyle { get; set; }
    Property Value
    Type Description
    SchedulerTextStyle

    The default value of TextColor is Microsoft.Maui.Graphics.Colors.LightGray and the default value of FontSize will be changed based on the platform. The minimum value of FontSize is 10 for all platforms.

    • In MACCATALYST, IPad and ANDROID Tablet, The default font size is 18.
    • In WINDOWS and IOS, The default font size is 16.
    • In ANDROID Phone, The default font size is 14.
    Remarks

    It will be applicable to all View.

    Examples

    The below examples shows, how to use the TrailingMonthTextStyle to the month cell of the SfScheduler.

     var trailingMonthTextStyle = new SchedulerTextStyle()
     {
         TextColor = Colors.Red,
         FontSize = 14,
     };
     this.Scheduler.MonthView.CellStyle.TrailingMonthTextStyle = trailingMonthTextStyle;
    See Also
    Background
    TextStyle
    LeadingMonthTextStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved