Introducing the Effects View Control for Xamarin.Forms | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (180).NET Core  (28).NET MAUI  (226)Angular  (113)ASP.NET  (49)ASP.NET Core  (81)ASP.NET MVC  (87)Azure  (41)Black Friday Deal  (1)Blazor  (235)BoldSign  (14)DocIO  (24)Essential JS 2  (110)Essential Studio  (199)File Formats  (72)Flutter  (136)JavaScript  (226)Microsoft  (121)PDF  (83)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (963)TypeScript  (33)Uno Platform  (3)UWP  (3)Vue  (46)Webinar  (53)Windows Forms  (59)WinUI  (72)WPF  (163)Xamarin  (159)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (10)Business intelligence  (55)Button  (4)C#  (164)Chart  (146)Chart of the week  (58)Cloud  (15)Company  (440)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (73)Development  (678)Doc  (7)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (13)Excel  (43)Extensions  (23)File Manager  (7)Gantt  (21)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (522)Mobile MVC  (9)OLAP server  (2)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (45)Performance  (13)PHP  (2)PivotGrid  (5)Predictive Analytics  (6)Report Server  (3)Reporting  (8)Reporting / Back Office  (9)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (5)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (32)Solution Services  (4)Spreadsheet  (11)SQL  (15)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (113)UI  (404)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (626)What's new  (339)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Introducing the Effects View Control for Xamarin.Forms

Introducing the Effects View Control for Xamarin.Forms

A modern-day mobile application can no longer be imagined without attractive animations. Mobile applications commonly include many animation types, like ripple, rotation, and scaling. These kinds of animations make the application highly interactive.

The options available in Xamarin.Forms to achieve these kinds of effects for iOS and Android are quite few. In Xamarin.Android, you can use RippleDrawable to add the ripple effect, but it is not available for Xamarin.iOS. Moreover, this effect works better when used as a separate feature. When you need to include multiple animations simultaneously, like ripple and rotation, you need quite a lot of tweaking in shared and platform-specific projects.

To provide these effects in a more efficient way, we are introducing a new component called Effects View in Xamarin.Forms for the iOS and Android platforms in our 2019 Volume 3 beta release. This control is available as a part of Syncfusion.Xamarin.Core NuGet package. It is a container control that can accept any type of view as its child. It provides effects like highlighting the background, ripple, selection, scale-up, scale down, and rotation. One good thing about this control is that these effects also work just fine in different combinations like highlight and ripple, ripple and selection, selection and scale, ripple and rotation, and so on.

Different effects

There are different types of effects available in Effects View. I will explain how to use them separately and then some possible combinations of them.


The highlight effect can be achieved by setting the effect mode to Highlight. This effect will fade out automatically after completion.

<ContentPage xmlns:effectsView="clr-namespace:Syncfusion.XForms.EffectsView;assembly=Syncfusion.Core.XForms">
  <effectsView:SfEffectsView TouchDownEffects="Highlight">                 
highlight effect in Xamarin Forms Effects view
Highlight effect


The ripple effect can be achieved by setting the effect mode to Ripple. Like the highlight effect, this effect, too, will fade out automatically after completion.

<effectsView:SfEffectsView TouchDownEffects="Ripple">                 
Ripple effect in Xamarin Forms Effects View
Ripple effect


The rotation effect can be achieved by setting the effect mode to Rotation. The content of the Effects View will be rotated based on the value of Angle.

<effectsView:SfEffectsView TouchDownEffects="Rotation" Angle="180">                 
Rotation effect in Xamarin Forms Effects View
Rotation effect


The scaling effect can be achieved by setting the effect mode to Scale. The content of the Effects View will scale down or scale-up based on the value of ScaleFactor, i.e. if it is less than 1, there will be a scale-down effect and if it is greater than 1, there will be a scale-up effect.

<effectsView:SfEffectsView TouchDownEffects="Scale" ScaleFactor="0.8">                 
Scale effect in Xamarin Forms Effects View
Scale effect


You can move to the selection state by setting the effect mode to Selection.

<effectsView:SfEffectsView TouchDownEffects="Selection">                 

You can also set the property IsSelected to true.

<effectsView:SfEffectsView IsSelected="true">                 
Selection effect in Xamarin Forms Effects View
Selection effect

In both approaches, the SelectionChanged event will be triggered, which can be used for application-level customizations.

Scale and selection

As I mentioned in the introduction of this blog, apart from using these effects separately, you can also use them combined. Here are some examples.

Let’s set scale and selection for the effects mode.

<effectsView:SfEffectsView TouchDownEffects="Scale, Selection" ScaleFactor="0.8">                 

Scale and selection effect in Xamarin Forms Effects View
Scale and selection effect

Ripple and scale

Another possible combination is ripple and scale. Let’s see how they behave.

<effectsView:SfEffectsView TouchDownEffects="Ripple, Scale">                 
Ripple and scale effect in Xamarin Forms Effects View
Ripple and scale effect

Ripple and rotation

You can also use a ripple and rotation combination.

<effectsView:SfEffectsView TouchDownEffects="Ripple, Rotation">                 
Ripple and rotation effect in Xamarin Forms Effects View
Ripple and rotation effect

Touch interactions

In the previous code snippets, you may have noticed that I set the different effects to the property TouchDownEffects. As the name implies, these effects will render during touch-down interaction with the Effects View control. If you need these effects during long-press or touch-up interactions, you can use the LongPressEffects and TouchUpEffects properties.

Another interesting aspect is that you can have different effects for different interactions. E.g., you can set Highlight for touch down and Ripple for long press.

<effectsView:SfEffectsView TouchDownEffects="Highlight" LongPressEffects="Ripple, Selection" >                 

Trigger effects through API

In addition to touch interactions, you can also trigger all these effects using the method ApplyEffects. All the parameters of this method are optional and can be used as necessary. If no parameter is passed, the ripple effect will be triggered. It accepts the following optional parameters:

‘effects’—Sets the type(s) of effect.

‘rippleStartPosition’—During interactions, the ripple effect will always start from the point of interaction. While using the ApplyEffects method, you can start the ripple from the left, right, top, or bottom position. Default is center.

‘rippleStartPoint’—Sets the exact x, y point from which the ripple should start.

‘repeat’—Sets the value for whether or not to repeat the ripple effect continuously.

Repeat and fade out the ripple

Ripple with fade out is one of the most common animations we see in mobile applications.You can achieve this effect by passing repeat in the ApplyEffects method and setting the FadeOutRipple property to true.

this.RotationEffectsView.ApplyEffects(repeat: true);

If you need to stop the ripple effect, you can use Reset() method.

Ripple with fade out effect in Xamarin Forms Effects View
Ripple with fade out effect


In this blog post, we walked through our new Xamarin.Forms Effects View component and its usages in various scenarios. To learn more about the Effects View component, refer to our UG documentation.  You can drop your comments in the section below if you need any clarification about this component.

We are likely to add more effects to this component in future releases. If you need support for specific effects in this component or have any questions, contact us through our support forum, Direct-Trac, or feedback portal. We are waiting to hear your feedback about this new component!


Share this post:

Comments (5)

Any plans for UWP support?

Mohamed Samsudeen
Mohamed Samsudeen

Hi Philippe,

Yes. We have plans to provide UWP support in our future releases.


really useful

can we use in normal them without using sync fusion them?

Hi Ashish,

If you are asking, whether it is possible to apply these effects to Xamarin.Forms framework controls like Image, Grid, etc – Yes. You can.

Please let us know if further information is needed.


Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed