Xamarin.Forms Guides | Samples

Xamarin.Forms.Effect Class

A collection of styles and properties that can be added to an element at run time.

See Also: Effect

Syntax

public abstract class Effect

Remarks

Effects are suitable when the developer needs to use platform-specific features to achieve the desired effect. Developers should consider using Behavior if they do not need platform-specific implentations to achieve their desired result.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 2.0.0.0

The members of Xamarin.Forms.Effect are listed below.

See Also: Object

Public Properties

[read-only]
ElementElement. Gets the element to which the style is attached.
[read-only]
IsAttachedBoolean. Gets a value that tells whether the effect is attached to an element.
[read-only]
ResolveIdString. Gets the ID that is used to resolve this effect at runtime.

Public Methods

static
Resolve(String) : Effect
Returns an Effect for the specified name, which is of the form ResolutionGroupName.ExportEffect.

Protected Methods

abstract
OnAttached()
Method that is called after the effect is attached and made valid.
abstract
OnDetached()
Method that is called after the effect is detached and invalidated.