Skip to content

Commit c3e6df4

Browse files
Merge pull request #3856 from syncfusion-content/997029-Smart-Scheduler
997029 : UG for MAUI Smart Scheduler
2 parents 3fde769 + 99a3579 commit c3e6df4

File tree

6 files changed

+941
-0
lines changed

6 files changed

+941
-0
lines changed

MAUI/SmartScheduler/events.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
layout: post
3+
title: Events .NET MAUI Smart Scheduler control | Syncfusion
4+
description: Learn here all about Events support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
5+
platform: MAUI
6+
control: SfSmartScheduler
7+
documentation: ug
8+
---
9+
10+
# Events in .NET MAUI Smart Scheduler (SfSmartScheduler)
11+
12+
The `SfSmartScheduler` supports the `AssistAppointmentResponseCompleted` event to interact with .NET MAUI Smart Scheduler.
13+
14+
## AssistAppointmentResponseCompleted Event
15+
16+
The `SfSmartScheduler` control provides the `AssistAppointmentResponseCompleted` to respond an appointment is created or modified through AI assistance. The appointment, assistant response, handled and its action are passed through the `AssistAppointmentResponseCompletedEventArgs`. This argument provides the following details:
17+
18+
* [Appointment](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerAppointment.html) : The appointment details.
19+
* `Handled` : The value indicates whether the event is handled or not.
20+
* `AssistantResponse` : The appointment response detail.
21+
* `Action` : The action whether the appointment is added, edited or deleted.
22+
23+
The following example demonstrates how to handle the `AssistAppointmentResponseCompleted` event.
24+
25+
{% tabs %}
26+
{% highlight xaml tabtitle="MainPage.xaml" hl_lines="2" %}
27+
28+
<smartScheduler:SfSmartScheduler x:Name="smartScheduler" AssistAppointmentResponseCompleted="OnAssistAppointmentResponseCompleted"/>
29+
30+
{% endhighlight %}
31+
{% highlight c# tabtitle="MainPage.xaml.cs" %}
32+
33+
private void OnAssistAppointmentResponseCompleted(object sender, AssistAppointmentResponseCompletedEventArgs e)
34+
{
35+
SchedulerAppointment? appointment = e.Appointment;
36+
string response = e.AssistantResponse;
37+
if (e.Action == AppointmentAction.Add)
38+
{
39+
e.Handled = true;
40+
}
41+
}
42+
43+
{% endhighlight %}
44+
{% endtabs %}

0 commit comments

Comments
 (0)