Skip to content

Commit c96aaf3

Browse files
Merge pull request #3860 from syncfusion-content/997029-Smart-Scheduler-UG-Pending
997029 : UG added for MAUI Smart Scheduler
2 parents 08f92db + 2700599 commit c96aaf3

File tree

5 files changed

+138
-29
lines changed

5 files changed

+138
-29
lines changed

MAUI/SmartScheduler/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Events .NET MAUI Smart Scheduler control | Syncfusion
3+
title: Events support in .NET MAUI Smart Scheduler control | Syncfusion
44
description: Learn here all about Events support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
55
platform: MAUI
66
control: SfSmartScheduler

MAUI/SmartScheduler/methods.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
layout: post
3+
title: Methods support in .NET MAUI Smart Scheduler control | Syncfusion
4+
description: Learn here all about methods support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
5+
platform: MAUI
6+
control: SfSmartScheduler
7+
documentation: ug
8+
---
9+
10+
# Methods in .NET MAUI Smart Scheduler (SfSmartScheduler)
11+
12+
The `SfSmartScheduler` supports the `ResetAssistView`, `CloseAssistView` and `OpenAssistView` methods to reset, close or open assist view programmatically.
13+
14+
## Reset assist view
15+
16+
The `SfSmartScheduler` control provides the `ResetAssistView()` method to reset assist view programmatically using an event.
17+
18+
{% tabs %}
19+
{% highlight xaml tabtitle="MainPage.xaml" %}
20+
21+
<Grid>
22+
<Grid.RowDefinitions>
23+
<RowDefinition/>
24+
<RowDefinition Height="50"/>
25+
</Grid.RowDefinitions>
26+
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
27+
<Button Grid.Row="1" Text="Reset assistant" Clicked="Button_Clicked"/>
28+
</Grid>
29+
30+
{% endhighlight %}
31+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}
32+
33+
private void Button_Clicked(object sender, EventArgs e)
34+
{
35+
this.smartScheduler.ResetAssistView();
36+
}
37+
38+
{% endhighlight %}
39+
{% endtabs %}
40+
41+
## Close assist view
42+
43+
The `SfSmartScheduler` control provides the `CloseAssistView()` method to close assist view programmatically using an event.
44+
45+
{% tabs %}
46+
{% highlight xaml tabtitle="MainPage.xaml" %}
47+
48+
<Grid>
49+
<Grid.RowDefinitions>
50+
<RowDefinition/>
51+
<RowDefinition Height="50"/>
52+
</Grid.RowDefinitions>
53+
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
54+
<Button Grid.Row="1" Text="Close assistant" Clicked="Button_Clicked"/>
55+
</Grid>
56+
57+
{% endhighlight %}
58+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}
59+
60+
private void Button_Clicked(object sender, EventArgs e)
61+
{
62+
this.smartScheduler.CloseAssistView();
63+
}
64+
65+
{% endhighlight %}
66+
{% endtabs %}
67+
68+
## Open assist view
69+
70+
The `SfSmartScheduler` control provides the `OpenAssistView()` method to open assist view programmatically using an event.
71+
72+
{% tabs %}
73+
{% highlight xaml tabtitle="MainPage.xaml" %}
74+
75+
<Grid>
76+
<Grid.RowDefinitions>
77+
<RowDefinition/>
78+
<RowDefinition Height="50"/>
79+
</Grid.RowDefinitions>
80+
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
81+
<Button Grid.Row="1" Text="Open assistant" Clicked="Button_Clicked"/>
82+
</Grid>
83+
84+
{% endhighlight %}
85+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}
86+
87+
private void Button_Clicked(object sender, EventArgs e)
88+
{
89+
this.smartScheduler.OpenAssistView();
90+
}
91+
92+
{% endhighlight %}
93+
{% endtabs %}

MAUI/SmartScheduler/styles.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: About .NET MAUI Smart Scheduler control | Syncfusion
3+
title: Styles support .NET MAUI Smart Scheduler control | Syncfusion
44
description: Learn here all about Styles support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
55
platform: MAUI
66
control: SfSmartScheduler
@@ -12,7 +12,7 @@ documentation: ug
1212
You can style the elements of the `.NET MAUI Smart Scheduler` assist view using the `PlaceholderColor`, `AssistViewHeaderTextColor`, `AssistViewHeaderBackground`, `AssistViewHeaderFontSize`,`AssistViewHeaderFontFamily`, `AssistViewHeaderFontAttributes` and `AssistViewHeaderFontAutoScalingEnabled` properties of the `AssistStyle`.
1313

1414
{% tabs %}
15-
{% highlight XAML hl_lines="5 14" %}
15+
{% highlight XAML hl_lines="5 13" %}
1616

1717
<smartScheduler:SfSmartScheduler x:Name="smartScheduler">
1818
<smartScheduler:SfSmartScheduler.AssistViewSettings>
@@ -24,8 +24,7 @@ You can style the elements of the `.NET MAUI Smart Scheduler` assist view using
2424
AssistViewHeaderFontSize="24"
2525
AssistViewHeaderFontAttributes="Bold"
2626
AssistViewHeaderFontFamily="OpenSansSemibold"
27-
AssistViewHeaderFontAutoScalingEnabled="True"
28-
/>
27+
AssistViewHeaderFontAutoScalingEnabled="True" />
2928
</smartScheduler:SchedulerAssistViewSettings.AssistStyle>
3029
</smartScheduler:SchedulerAssistViewSettings>
3130
</smartScheduler:SfSmartScheduler.AssistViewSettings>

MAUI/SmartScheduler/working-with-smart-scheduler.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -206,32 +206,52 @@ this.Content = smartScheduler;
206206
The assist view suggested prompts can be customized by using the `SuggestedPrompts` property of the `AssistViewSettings`. By default, the `SuggestedPrompts` property is set to null.
207207

208208
{% tabs %}
209-
{% highlight XAML hl_lines="4" %}
209+
{% highlight XAML hl_lines="8" %}
210+
211+
<ContentPage.BindingContext>
212+
<local:ViewModel/>
213+
</ContentPage.BindingContext>
210214

211215
<smartScheduler:SfSmartScheduler x:Name="smartScheduler">
212216
<smartScheduler:SfSmartScheduler.AssistViewSettings >
213-
<smartScheduler:SchedulerAssistViewSettings ShowAssistViewBanner="True">
214-
<smartScheduler:SchedulerAssistViewSettings.SuggestedPrompts>
215-
<x:Array Type="{x:Type x:String}">
216-
<x:String>Find free slots</x:String>
217-
<x:String>Create a meeting</x:String>
218-
<x:String>Summarize today</x:String>
219-
</x:Array>
220-
</smartScheduler:SchedulerAssistViewSettings.SuggestedPrompts>
221-
</smartScheduler:SchedulerAssistViewSettings>
217+
<smartScheduler:SchedulerAssistViewSettings ShowAssistViewBanner="True" SuggestedPrompts="{Binding SuggestedPrompts}"/>
222218
</smartScheduler:SfSmartScheduler.AssistViewSettings>
223219
</smartScheduler:SfSmartScheduler>
224220

221+
{% endhighlight %}
222+
{% highlight C# tabtitle="ViewModel.cs" %}
223+
224+
public class ViewModel
225+
{
226+
private List<string> suggestedPrompts;
227+
228+
public List<string> SuggestedPrompts
229+
{
230+
get { return suggestedPrompts; }
231+
set { suggestedPrompts = value; }
232+
}
233+
234+
public ViewModel()
235+
{
236+
this.suggestedPrompts = new List<string>()
237+
{
238+
"Summarize today's appointments",
239+
"Find today's free timeslots",
240+
"Conflict detection"
241+
};
242+
}
243+
}
244+
225245
{% endhighlight %}
226246
{% highlight C# hl_lines="4 5 6 7 8 9" %}
227247

228248
SfSmartScheduler smartScheduler = new SfSmartScheduler();
229249
smartScheduler.AssistViewSettings.ShowAssistViewBanner = true;
230250
smartScheduler.AssistViewSettings.SuggestedPrompts = new List<string>
231251
{
232-
"Schedule meeting",
233-
"Set reminder",
234-
"Book appointment"
252+
"Summarize today's appointments",
253+
"Find today's free timeslots",
254+
"Conflict detection"
235255
};
236256
this.Content = smartScheduler;
237257

maui-toc.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,18 +1210,15 @@
12101210
<li><a href="/maui/Scheduler/AI-Powered-Smart-Scheduler">AI powered Smart Appointment Booking</a></li>
12111211
</ul>
12121212
</li>
1213-
<li>Smart Components
1213+
<li>
1214+
SfSmartScheduler
12141215
<ul>
1215-
<li>
1216-
Smart Scheduler
1217-
<ul>
1218-
<li><a href="/maui/SmartScheduler/overview">Overview</a></li>
1219-
<li><a href="/maui/SmartScheduler/getting-started">Getting Started</a></li>
1220-
<li><a href="/maui/SmartScheduler/working-with-smart-scheduler">Working with smart scheduler</a></li>
1221-
<li><a href="/maui/SmartScheduler/events">Events</a></li>
1222-
<li><a href="/maui/SmartScheduler/styles">Styles</a></li>
1223-
</ul>
1224-
</li>
1216+
<li><a href="/maui/SmartScheduler/overview">Overview</a></li>
1217+
<li><a href="/maui/SmartScheduler/getting-started">Getting Started</a></li>
1218+
<li><a href="/maui/SmartScheduler/working-with-smart-scheduler">Working with smart scheduler</a></li>
1219+
<li><a href="/maui/SmartScheduler/events">Events</a></li>
1220+
<li><a href="/maui/SmartScheduler/methods">Methods</a></li>
1221+
<li><a href="/maui/SmartScheduler/styles">Styles</a></li>
12251222
</ul>
12261223
</li>
12271224
<li>

0 commit comments

Comments
 (0)