summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-04-13 23:38:38 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-04-13 23:38:38 (GMT)
commite7f30c34d51140067bbad4f072bca7e8140d2450 (patch)
tree68cdc71d283dc4779e7050e707fec8b05bf43bf7 /Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
parent840ec020015a257e983a8f783a80031628d502db (diff)
downloadxamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.zip
xamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.tar.gz
xamarin-forms-e7f30c34d51140067bbad4f072bca7e8140d2450.tar.bz2
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/Renderers/PhoneMasterDetailRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
index 070a038..dcefbcf 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
@@ -20,7 +20,7 @@ using nuint=System.UInt32;
namespace Xamarin.Forms.Platform.iOS
{
- public class PhoneMasterDetailRenderer : UIViewController, IVisualElementRenderer
+ public class PhoneMasterDetailRenderer : UIViewController, IVisualElementRenderer, IEffectControlProvider
{
UIView _clickOffView;
UIViewController _detailController;
@@ -91,6 +91,8 @@ namespace Xamarin.Forms.Platform.iOS
OnElementChanged(new VisualElementChangedEventArgs(oldElement, element));
+ EffectUtilities.RegisterEffectControlProvider(this, oldElement, element);
+
if (element != null)
element.SendViewInitialized(NativeView);
}
@@ -397,5 +399,12 @@ namespace Xamarin.Forms.Platform.iOS
vc.View.Frame = View.Bounds;
}
}
+
+ void IEffectControlProvider.RegisterEffect(Effect effect)
+ {
+ var platformEffect = effect as PlatformEffect;
+ if (platformEffect != null)
+ platformEffect.Container = View;
+ }
}
} \ No newline at end of file