xamarin-docs/Xamarin/Effects-View/Features.md

2.9 KiB

layout title description platform control documentation
post Features in Xamarin Effects View control | Syncfusion Learn here all about Features support in Syncfusion Xamarin Effects View (SfEffectsView) control and more. xamarin SfEffectsView ug

Features in Xamarin Effects View (SfEffectsView)

The SfEffectsView control provides the following additional features to enhance the effects:

FadeOutRipple

By enabling the FadeOutRipple property of SfEffectsView, the growable circle will lose its opacity to 0 on growing.

{% tabs %}

{% highlight xaml %}

<syncEffectsView:SfEffectsView FadeOutRipple="True" RippleAnimationDuration="1000"> ... </syncEffectsView:SfEffectsView>

{% endhighlight %}

{% highlight C# %}

var effectsView = new SfEffectsView { FadeOutRipple = true, RippleAnimationDuration = 1000 };

{% endhighlight %}

{% endtabs %}

FadeOutRipple

IsSelected

Enabling the IsSelected property of SfEffectsView sets the view state as selected.

{% tabs %}

{% highlight xaml %}

<syncEffectsView:SfEffectsView IsSelected="true" LongPressEffects="Selection"> ... </syncEffectsView:SfEffectsView>

{% endhighlight %}

{% highlight C# %}

var effectsView = new SfEffectsView { IsSelected = true, LongPressEffects = SfEffects.Selection };

{% endhighlight %}

{% endtabs %}

ShouldIgnoreTouches

Enabling the ShouldIgnoreTouches property of SfEffectsView cancels the direct interaction of the SfEffectsView.

{% tabs %}

{% highlight xaml %}

<syncEffectsView:SfEffectsView ShouldIgnoreTouches="true"> ... </syncEffectsView:SfEffectsView>

{% endhighlight %}

{% highlight C# %}

var effectsView = new SfEffectsView { ShouldIgnoreTouches = true };

{% endhighlight %}

{% endtabs %}

N> On enabling ShouldIgnoreTouches property in iOS, the child view will not get interaction.