|
| 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>®</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 %} |
0 commit comments