Methods in .NET MAUI Effects View (SfEffectsView)

21 May 20251 minute to read

Effects can be applied and removed programmatically using the ApplyEffects or Reset methods.

ApplyEffects

The ApplyEffects method triggers effects rendering with or without repetition. The following are the optional parameters:

  • effects - SfEffects to be applied. By default, SfEffects.Ripple will be applied.
  • rippleStartPosition - RippleStartPosition can be left, top, right, bottom, top left, top right, bottom left, bottom right or default. By default, the ripple starts from the center.
  • rippleStartPoint - Point at which ripple animation starts. The default value is null.
  • repeat - Boolean value used to set whether to repeat the applied effect. The default value is false. Only SfEffects.Ripple can be repeated.

NOTE

The SfEffects applied using the ApplyEffects method will not be removed automatically.

Reset

The Reset method is used to reset the SfEffects.Highlight and SfEffects.Ripple effects, which are applied using the ApplyEffects method.