Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

EffectBehavior

David Britch edited this page Sep 30, 2016 · 4 revisions

EffectBehavior

The EffectBehavior is a Xamarin.Forms behavior that allows you to add an Effect to a control when the behavior is attached to the control, and remove the Effect from the control when the behavior is detached from the control.

Parameters

You must supply two values:

  • Group : a string representing the group name of the Effect.
  • Name : a string representing the name of the Effect.

Example

In the following example, the Group value is the value of the ResolutionGroupName attribute of the Effect, and the Name value is the value of the ExportEffect attribute of the Effect:

<Page xmlns:inf="clr-namespace:XamarinUniversity.Infrastructure;assembly=XamU.Infrastructure" ...>
	...
	<Label Text = "Label Shadow Effect">
		<Label.Behaviors>
			<inf:EffectBehavior Group="Xamarin" Name="LabelShadowEffect" />
 		</Label.Behaviors>
	</Label>
	...
</Page>