Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAUI/SmartScheduler/events.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: Events .NET MAUI Smart Scheduler control | Syncfusion
title: Events support in .NET MAUI Smart Scheduler control | Syncfusion
description: Learn here all about Events support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
platform: MAUI
control: SfSmartScheduler
Expand Down
93 changes: 93 additions & 0 deletions MAUI/SmartScheduler/methods.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
layout: post
title: Methods support in .NET MAUI Smart Scheduler control | Syncfusion
description: Learn here all about methods support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
platform: MAUI
control: SfSmartScheduler
documentation: ug
---

# Methods in .NET MAUI Smart Scheduler (SfSmartScheduler)

The `SfSmartScheduler` supports the `ResetAssistView`, `CloseAssistView` and `OpenAssistView` methods to reset, close or open assist view programmatically.

## Reset assist view

The `SfSmartScheduler` control provides the `ResetAssistView()` method to reset assist view programmatically using an event.

{% tabs %}
{% highlight xaml tabtitle="MainPage.xaml" %}

<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
<Button Grid.Row="1" Text="Reset assistant" Clicked="Button_Clicked"/>
</Grid>

{% endhighlight %}
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}

private void Button_Clicked(object sender, EventArgs e)
{
this.smartScheduler.ResetAssistView();
}

{% endhighlight %}
{% endtabs %}

## Close assist view

The `SfSmartScheduler` control provides the `CloseAssistView()` method to close assist view programmatically using an event.

{% tabs %}
{% highlight xaml tabtitle="MainPage.xaml" %}

<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
<Button Grid.Row="1" Text="Close assistant" Clicked="Button_Clicked"/>
</Grid>

{% endhighlight %}
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}

private void Button_Clicked(object sender, EventArgs e)
{
this.smartScheduler.CloseAssistView();
}

{% endhighlight %}
{% endtabs %}

## Open assist view

The `SfSmartScheduler` control provides the `OpenAssistView()` method to open assist view programmatically using an event.

{% tabs %}
{% highlight xaml tabtitle="MainPage.xaml" %}

<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"/>
<Button Grid.Row="1" Text="Open assistant" Clicked="Button_Clicked"/>
</Grid>

{% endhighlight %}
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4" %}

private void Button_Clicked(object sender, EventArgs e)
{
this.smartScheduler.OpenAssistView();
}

{% endhighlight %}
{% endtabs %}
7 changes: 3 additions & 4 deletions MAUI/SmartScheduler/styles.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: About .NET MAUI Smart Scheduler control | Syncfusion
title: Styles support .NET MAUI Smart Scheduler control | Syncfusion
description: Learn here all about Styles support in Syncfusion<sup>&reg;</sup> .NET MAUI Smart Scheduler(SfSmartScheduler) control.
platform: MAUI
control: SfSmartScheduler
Expand All @@ -12,7 +12,7 @@ documentation: ug
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`.

{% tabs %}
{% highlight XAML hl_lines="5 14" %}
{% highlight XAML hl_lines="5 13" %}

<smartScheduler:SfSmartScheduler x:Name="smartScheduler">
<smartScheduler:SfSmartScheduler.AssistViewSettings>
Expand All @@ -24,8 +24,7 @@ You can style the elements of the `.NET MAUI Smart Scheduler` assist view using
AssistViewHeaderFontSize="24"
AssistViewHeaderFontAttributes="Bold"
AssistViewHeaderFontFamily="OpenSansSemibold"
AssistViewHeaderFontAutoScalingEnabled="True"
/>
AssistViewHeaderFontAutoScalingEnabled="True" />
</smartScheduler:SchedulerAssistViewSettings.AssistStyle>
</smartScheduler:SchedulerAssistViewSettings>
</smartScheduler:SfSmartScheduler.AssistViewSettings>
Expand Down
46 changes: 33 additions & 13 deletions MAUI/SmartScheduler/working-with-smart-scheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,32 +206,52 @@ this.Content = smartScheduler;
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.

{% tabs %}
{% highlight XAML hl_lines="4" %}
{% highlight XAML hl_lines="8" %}

<ContentPage.BindingContext>
<local:ViewModel/>
</ContentPage.BindingContext>

<smartScheduler:SfSmartScheduler x:Name="smartScheduler">
<smartScheduler:SfSmartScheduler.AssistViewSettings >
<smartScheduler:SchedulerAssistViewSettings ShowAssistViewBanner="True">
<smartScheduler:SchedulerAssistViewSettings.SuggestedPrompts>
<x:Array Type="{x:Type x:String}">
<x:String>Find free slots</x:String>
<x:String>Create a meeting</x:String>
<x:String>Summarize today</x:String>
</x:Array>
</smartScheduler:SchedulerAssistViewSettings.SuggestedPrompts>
</smartScheduler:SchedulerAssistViewSettings>
<smartScheduler:SchedulerAssistViewSettings ShowAssistViewBanner="True" SuggestedPrompts="{Binding SuggestedPrompts}"/>
</smartScheduler:SfSmartScheduler.AssistViewSettings>
</smartScheduler:SfSmartScheduler>

{% endhighlight %}
{% highlight C# tabtitle="ViewModel.cs" %}

public class ViewModel
{
private List<string> suggestedPrompts;

public List<string> SuggestedPrompts
{
get { return suggestedPrompts; }
set { suggestedPrompts = value; }
}

public ViewModel()
{
this.suggestedPrompts = new List<string>()
{
"Summarize today's appointments",
"Find today's free timeslots",
"Conflict detection"
};
}
}

{% endhighlight %}
{% highlight C# hl_lines="4 5 6 7 8 9" %}

SfSmartScheduler smartScheduler = new SfSmartScheduler();
smartScheduler.AssistViewSettings.ShowAssistViewBanner = true;
smartScheduler.AssistViewSettings.SuggestedPrompts = new List<string>
{
"Schedule meeting",
"Set reminder",
"Book appointment"
"Summarize today's appointments",
"Find today's free timeslots",
"Conflict detection"
};
this.Content = smartScheduler;

Expand Down
19 changes: 8 additions & 11 deletions maui-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1210,18 +1210,15 @@
<li><a href="/maui/Scheduler/AI-Powered-Smart-Scheduler">AI powered Smart Appointment Booking</a></li>
</ul>
</li>
<li>Smart Components
<li>
SfSmartScheduler
<ul>
<li>
Smart Scheduler
<ul>
<li><a href="/maui/SmartScheduler/overview">Overview</a></li>
<li><a href="/maui/SmartScheduler/getting-started">Getting Started</a></li>
<li><a href="/maui/SmartScheduler/working-with-smart-scheduler">Working with smart scheduler</a></li>
<li><a href="/maui/SmartScheduler/events">Events</a></li>
<li><a href="/maui/SmartScheduler/styles">Styles</a></li>
</ul>
</li>
<li><a href="/maui/SmartScheduler/overview">Overview</a></li>
<li><a href="/maui/SmartScheduler/getting-started">Getting Started</a></li>
<li><a href="/maui/SmartScheduler/working-with-smart-scheduler">Working with smart scheduler</a></li>
<li><a href="/maui/SmartScheduler/events">Events</a></li>
<li><a href="/maui/SmartScheduler/methods">Methods</a></li>
<li><a href="/maui/SmartScheduler/styles">Styles</a></li>
</ul>
</li>
<li>
Expand Down