This repository was archived by the owner on Aug 27, 2020. It is now read-only.
-
Couldn't load subscription status.
- Fork 37
EffectBehavior
David Britch edited this page Sep 30, 2016
·
4 revisions
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.
You must supply two values:
-
Group: astringrepresenting the group name of theEffect. -
Name: astringrepresenting the name of theEffect.
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>