Skip to content

Updated the Maui Tool kit ug-example for effectsview #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
55 changes: 55 additions & 0 deletions maui-toolkit/Effects-View/Methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,63 @@ The [ApplyEffects](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEf
* `rippleStartPoint` - point at which ripple animation starts. The default value is null.
* `repeat` - bool value used to set whether to repeat the applied effect. The default value is false. Only [SfEffects.Ripple](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffects.html#Syncfusion_Maui_Core_SfEffects_Ripple) can be repeated.

{% tabs %}

{% highlight xaml %}

<Grid RowDefinitions="0.9*, 0.1*">
<syncEffectsView:SfEffectsView x:Name="EffectsView"
/>
<Button Grid.Row="1"
Text="Save"
Clicked="OnApplyEffectsClicked" />
</Grid>

{% endhighlight %}

{% highlight C# %}

using Syncfusion.Maui.Toolkit.EffectsView;

private void OnApplyEffectsClicked(object sender, EventArgs e)
{
this.EffectsView.ApplyEffects(EffectsView.SfEffects.Ripple, EffectsView.RippleStartPosition.BottomRight);
}

{% endhighlight %}

{% endtabs %}

N> The [SfEffects](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffects.html) applied using [ApplyEffects](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffectsView.html#Syncfusion_Maui_Core_SfEffectsView_ApplyEffects_Syncfusion_Maui_Core_SfEffects_Syncfusion_Maui_Core_RippleStartPosition_System_Nullable_System_Drawing_Point__System_Boolean_) method will not be removed automatically.

## Reset

The [Reset](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffectsView.html#Syncfusion_Maui_Core_SfEffectsView_Reset) method is used to reset the [SfEffects.Highlight](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffects.html#Syncfusion_Maui_Core_SfEffects_Highlight) and [SfEffects.Ripple](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfEffects.html#Syncfusion_Maui_Core_SfEffects_Ripple) effects, which are applied using the `ApplyEffects` method.

{% tabs %}

{% highlight xaml %}

<Grid RowDefinitions="0.9*, 0.1*">
<syncEffectsView:SfEffectsView x:Name="EffectsView"
/>
<Button Grid.Row="1"
Text="Save"
Clicked="OnResetEffectsClicked" />
</Grid>

{% endhighlight %}

{% highlight C# %}

using Syncfusion.Maui.Toolkit.EffectsView;

private void OnResetEffectsClicked(object sender, EventArgs e)
{
this.EffectsView.ApplyEffects(EffectsView.SfEffects.Ripple, EffectsView.RippleStartPosition.BottomRight);
this.EffectsView.Reset();
}

{% endhighlight %}

{% endtabs %}