maui-linux/Xamarin.Forms.Platform.iOS/EffectUtilities.cs

23 строки
571 B
C#

#if __MOBILE__
namespace Xamarin.Forms.Platform.iOS
#else
namespace Xamarin.Forms.Platform.MacOS
#endif
{
internal static class EffectUtilities
{
public static void RegisterEffectControlProvider(IEffectControlProvider self, IElementController oldElement,
IElementController newElement)
{
IElementController controller = oldElement;
if (controller != null && controller.EffectControlProvider == self)
controller.EffectControlProvider = null;
controller = newElement;
if (controller != null)
controller.EffectControlProvider = self;
}
}
}