Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 674 Bytes
using System;
using System.Linq;
using Xamarin.Forms;
using Xamarin.Forms.ControlGallery.Android;
using Xamarin.Forms.Controls.Effects;
using Xamarin.Forms.Platform.Android;
[assembly: ExportEffect(typeof(AttachedStateEffectRenderer), AttachedStateEffect.EffectName)]
namespace Xamarin.Forms.ControlGallery.Android
{
public class AttachedStateEffectRenderer : PlatformEffect
{
public AttachedStateEffect MyEffect { get; private set; }
protected override void OnAttached()
{
MyEffect = Element.Effects.OfType<AttachedStateEffect>().First();
MyEffect.Attached(Element);
}
protected override void OnDetached()
{
MyEffect.Detached(Element);
}
}
}
You can’t perform that action at this time.