menu

MAUI

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

    Show / Hide Table of Contents

    Class SchedulerCellSelectionView

    Represents a class that contains the settings for customizing the appearance of the selection UI.

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

    Constructors

    SchedulerCellSelectionView()

    Initializes a new instance of the SchedulerCellSelectionView class.

    Declaration
    public SchedulerCellSelectionView()

    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.

    CornerRadiusProperty

    Identifies the CornerRadius dependency property.

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

    The identifier for CornerRadius dependency property.

    StrokeProperty

    Identifies the Stroke dependency property.

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

    The identifier for Stroke dependency property.

    StrokeWidthProperty

    Identifies the StrokeWidth dependency property.

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

    The identifier for StrokeWidth dependency property.

    TemplateProperty

    Identifies the Template dependency property.

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

    The identifier for Template dependency property.

    Properties

    Background

    Gets or sets the color that describes the cell selection background.

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

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

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="Scheduler">
        <scheduler:SfScheduler.CellSelectionView>
            <scheduler:SchedulerCellSelectionView Background = "Red"/>
        </scheduler:SfScheduler.CellSelectionView>
    </scheduler:SfScheduler>
    this.Scheduler.CellSelectionView.Background = Colors.Red;

    CornerRadius

    Gets or sets the Corner Radius for the selected cell.

    Declaration
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type
    Microsoft.Maui.CornerRadius
    Examples

    The below examples shows, how to set the cell selection corner radius to the SfScheduler.

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="Scheduler">
        <scheduler:SfScheduler.CellSelectionView>
            <scheduler:SchedulerCellSelectionView CornerRadius="4"/>
        </scheduler:SfScheduler.CellSelectionView>
    </scheduler:SfScheduler>
    this.Scheduler.CellSelectionView.CornerRadius = 4;

    Stroke

    Gets or sets the cell selection border color.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.Brush
    Examples

    The below examples shows, how to set the cell selection stroke to the SfScheduler.

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="Scheduler">
        <scheduler:SfScheduler.CellSelectionView>
            <scheduler:SchedulerCellSelectionView Stroke="Red"/>
        </scheduler:SfScheduler.CellSelectionView>
    </scheduler:SfScheduler>
    this.Scheduler.CellSelectionView.Stroke = Brush.Green;

    StrokeWidth

    Gets or sets the cell selection stroke width.

    Declaration
    public double StrokeWidth { get; set; }
    Property Value
    Type
    System.Double
    Remarks

    The StrokeWidth is applied only when the Stroke property is not null.

    Examples

    The below examples shows, how to set the cell selection stroke width to the SfScheduler.

    • XAML
    • C#
    <scheduler:SfScheduler x:Name="Scheduler">
        <scheduler:SfScheduler.CellSelectionView>
            <scheduler:SchedulerCellSelectionView StrokeWidth="4"/>
        </scheduler:SfScheduler.CellSelectionView>
    </scheduler:SfScheduler>
    this.Scheduler.CellSelectionView.StrokeWidth = 4;

    Template

    Gets or sets the Cell Selection View template for the scheduler, allowing the replacement of the default selection UI view with a custom UI view.

    Declaration
    public DataTemplate Template { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.DataTemplate
    Remarks

    The Template property enables the customization of the visual representation of the selection view in a scheduler control. By providing a custom UI view, users can create a distinctive appearance for selected cells, enhancing the overall user experience.

    Examples

    This example demonstrates how to set the Template property:

    • XAML
    <scheduler:SfScheduler x:Name="Scheduler">
        <scheduler:SfScheduler.CellSelectionView>
            <scheduler:SchedulerCellSelectionView>
                <scheduler:SchedulerCellSelectionView.Template>
                    <DataTemplate>
                        <Button BackgroundColor = "#FF9800" Text="+ Add event"
                        TextColor="White"/>
                    </DataTemplate>
                </scheduler:SchedulerCellSelectionView.Template>
            </scheduler:SchedulerCellSelectionView>
        </scheduler:SfScheduler.CellSelectionView>
    </scheduler:SfScheduler>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved