Skip to content

Commit 77309aa

Browse files
committed
Added methods md file
1 parent c3e6df4 commit 77309aa

File tree

4 files changed

+96
-9
lines changed

4 files changed

+96
-9
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: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ You can style the elements of the `.NET MAUI Smart Scheduler` assist view using
2121
<smartScheduler:SmartSchedulerAssistStyle PlaceholderColor="#6750A4"
2222
AssistViewHeaderBackground="#6750A4"
2323
AssistViewHeaderTextColor="#FFFFFF"
24-
AssistViewHeaderFontSize="24"
25-
AssistViewHeaderFontAttributes="Bold"
26-
AssistViewHeaderFontFamily="OpenSansSemibold"
27-
AssistViewHeaderFontAutoScalingEnabled="True"
28-
/>
24+
AssistViewHeaderFontSize="24" />
2925
</smartScheduler:SchedulerAssistViewSettings.AssistStyle>
3026
</smartScheduler:SchedulerAssistViewSettings>
3127
</smartScheduler:SfSmartScheduler.AssistViewSettings>
@@ -41,9 +37,6 @@ smartScheduler.AssistViewSettings.AssistStyle = new SmartSchedulerAssistStyle()
4137
AssistViewHeaderBackground = Color.FromArgb("#6750A4"),
4238
AssistViewHeaderTextColor = Color.FromArgb("#FFFFFF"),
4339
AssistViewHeaderFontSize = 24,
44-
AssistViewHeaderFontAutoScalingEnabled = true,
45-
AssistViewHeaderFontAttributes = FontAttributes.Italic,
46-
AssistViewHeaderFontFamily = "OpenSansSemibold",
4740
};
4841
this.Content = smartScheduler;
4942

maui-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@
12191219
<li><a href="/maui/SmartScheduler/getting-started">Getting Started</a></li>
12201220
<li><a href="/maui/SmartScheduler/working-with-smart-scheduler">Working with smart scheduler</a></li>
12211221
<li><a href="/maui/SmartScheduler/events">Events</a></li>
1222+
<li><a href="/maui/SmartScheduler/methods">Methods</a></li>
12221223
<li><a href="/maui/SmartScheduler/styles">Styles</a></li>
12231224
</ul>
12241225
</li>

0 commit comments

Comments
 (0)