Class SfSmartScheduler
Represents a class which is used to configure all the properties of SfSmartScheduler.
Implements
Inherited Members
Namespace: Syncfusion.Maui.SmartComponents
Assembly: Syncfusion.Maui.SmartComponents.dll
Syntax
public class SfSmartScheduler : SfScheduler, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IScheduler, ISchedulerViewInfo, IViewHeader, IDragAndDropInfo, IHeader, ISchedulerTouchGesture, IWeekHeader, IReminderInfo, IResourceViewInfo, ISchedulerKeyListener, IResourceViewMobileInteraction, IAgendaViewInfo, IAppointmentViewInfo, ISchedulerCommon, IInteractionInfo, ISafeAreaView, IAIAssistance, IAssistViewHeader, IAiAssistViewLayout, IParentThemeElement, IThemeElement
Constructors
SfSmartScheduler()
Initializes a new instance of the SfSmartScheduler class.
Declaration
public SfSmartScheduler()
Fields
AssistButtonTemplateProperty
Identifies the AssistButtonTemplate bindable property.
Declaration
public static readonly BindableProperty AssistButtonTemplateProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AssistViewSettingsProperty
Identifies the AssistViewSettings dependency property.
Declaration
public static readonly BindableProperty AssistViewSettingsProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for AssistViewSettings dependency property. |
EnableAssistButtonProperty
Identifies the EnableAssistButton dependency property.
Declaration
public static readonly BindableProperty EnableAssistButtonProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for EnableAssistButton dependency property. |
Properties
AssistButtonTemplate
Gets or sets the template used to display the AI button.
Declaration
public DataTemplate AssistButtonTemplate { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.DataTemplate |
Examples
<smartScheduler:SfSmartScheduler>
<smartScheduler:SfSmartScheduler.AssistButtonTemplate>
<DataTemplate>
<Grid Padding="8"
BackgroundColor="#EEF2FF"
ColumnDefinitions="Auto"
Margin="6">
<Label Text="Ask AI"
FontAttributes="Bold"
TextColor="#1C1B1F"
VerticalOptions="Center"
HorizontalOptions="Center" />
</Grid>
</DataTemplate>
</smartScheduler:SfSmartScheduler.AssistButtonTemplate>
</smartScheduler:SfSmartScheduler>
AssistViewSettings
Gets or sets the assist View settings.
Declaration
public SchedulerAssistViewSettings AssistViewSettings { get; set; }
Property Value
| Type |
|---|
| SchedulerAssistViewSettings |
Examples
<smartScheduler:SfSmartScheduler>
<smartScheduler:SfSmartScheduler.AssistViewSettings>
<smartScheduler:AssistViewSettings />
</smartScheduler:SfSmartScheduler.AssistViewSettings>
</smartScheduler:SfSmartScheduler>
EnableAssistButton
Gets or sets the value indicating whether to enable or disable the smart AI button.
Declaration
public bool EnableAssistButton { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Examples
Methods
CloseAssistView()
Method to close the assist view.
Declaration
public void CloseAssistView()
MeasureOverride(Double, Double)
Method used to measure the children based on width and height value.
Declaration
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | widthConstraint | The maximum width request of the layout. |
| System.Double | heightConstraint | The maximum height request of the layout. |
Returns
| Type | Description |
|---|---|
| Microsoft.Maui.Graphics.Size | The maximum size of the layout. |
OnBindingContextChanged()
Invoked whenever the binding context of the value changed.
Declaration
protected override void OnBindingContextChanged()
Overrides
OpenAssistView()
Method to open the assist view.
Declaration
public void OpenAssistView()
ResetAssistView()
Method to reset the assist view.
Declaration
public void ResetAssistView()
Events
AssistAppointmentResponseCompleted
Occurs when the appointment is created or modified through AI assistance.
Declaration
public event EventHandler<AssistAppointmentResponseCompletedEventArgs> AssistAppointmentResponseCompleted
Event Type
| Type |
|---|
| System.EventHandler<AssistAppointmentResponseCompletedEventArgs> |