diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-04-13 16:38:38 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-04-13 16:38:38 -0700 |
commit | e7f30c34d51140067bbad4f072bca7e8140d2450 (patch) | |
tree | 68cdc71d283dc4779e7050e707fec8b05bf43bf7 /Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs | |
parent | 840ec020015a257e983a8f783a80031628d502db (diff) | |
download | xamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.tar.gz xamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.tar.bz2 xamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.zip |
Page renderer effects (#85)
* [I]PageRenderer Effect support
* [I]Add Effect supprt for NavigationPage
* [I]Enable Effects on remaining pages
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs index d14c288c..68ae10bb 100644 --- a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs @@ -169,13 +169,7 @@ namespace Xamarin.Forms.Platform.iOS if (element != null) SendVisualElementInitialized(element, this); - var controller = (IElementController)oldElement; - if (controller != null && controller.EffectControlProvider == this) - controller.EffectControlProvider = null; - - controller = element; - if (controller != null) - controller.EffectControlProvider = this; + EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (Element != null && !string.IsNullOrEmpty(Element.AutomationId)) SetAutomationId(Element.AutomationId); |