Class SchedulerCellSelectionView
Represents a class that contains the settings for customizing the appearance of the selection UI.
Inheritance
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.
<scheduler:SfScheduler x:Name="Scheduler">
<scheduler:SfScheduler.CellSelectionView>
<scheduler:SchedulerCellSelectionView Background = "Red"/>
</scheduler:SfScheduler.CellSelectionView>
</scheduler:SfScheduler>
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.
<scheduler:SfScheduler x:Name="Scheduler">
<scheduler:SfScheduler.CellSelectionView>
<scheduler:SchedulerCellSelectionView CornerRadius="4"/>
</scheduler:SfScheduler.CellSelectionView>
</scheduler:SfScheduler>
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.
<scheduler:SfScheduler x:Name="Scheduler">
<scheduler:SfScheduler.CellSelectionView>
<scheduler:SchedulerCellSelectionView Stroke="Red"/>
</scheduler:SfScheduler.CellSelectionView>
</scheduler:SfScheduler>
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.
<scheduler:SfScheduler x:Name="Scheduler">
<scheduler:SfScheduler.CellSelectionView>
<scheduler:SchedulerCellSelectionView StrokeWidth="4"/>
</scheduler:SfScheduler.CellSelectionView>
</scheduler:SfScheduler>
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:
<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>