summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-04-11 18:02:06 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-04-11 18:02:06 (GMT)
commit093a4efa2da9cb681890158ca8ee9bb6f30b0a8c (patch)
treeccc17255876e40d2c845d7b2c62dfc930156729d /Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
parent7458ca37330f424bf7fb1447580b0fa9c34c6db4 (diff)
downloadxamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.zip
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.gz
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.bz2
Implicit impl of controller ifaces (#807)
* Simplify ICtrl callsites * Rebase fix
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
index fbadc77..12d54fa 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/PhoneMasterDetailRenderer.cs
@@ -24,13 +24,13 @@ namespace Xamarin.Forms.Platform.iOS
VisualElementTracker _tracker;
- IPageController PageController => Element as IPageController;
+ Page Page => Element as Page;
public PhoneMasterDetailRenderer()
{
}
- IMasterDetailPageController MasterDetailPageController => Element as IMasterDetailPageController;
+ MasterDetailPage MasterDetailPage => Element as MasterDetailPage;
bool Presented
{
@@ -46,7 +46,7 @@ namespace Xamarin.Forms.Platform.iOS
else
RemoveClickOffView();
- ((IElementController)Element).SetValueFromRenderer(MasterDetailPage.IsPresentedProperty, value);
+ ((IElementController)Element).SetValueFromRenderer(Xamarin.Forms.MasterDetailPage.IsPresentedProperty, value);
}
}
@@ -99,13 +99,13 @@ namespace Xamarin.Forms.Platform.iOS
public override void ViewDidAppear(bool animated)
{
base.ViewDidAppear(animated);
- PageController.SendAppearing();
+ Page.SendAppearing();
}
public override void ViewDidDisappear(bool animated)
{
base.ViewDidDisappear(animated);
- PageController?.SendDisappearing();
+ Page?.SendDisappearing();
}
public override void ViewDidLayoutSubviews()
@@ -142,7 +142,7 @@ namespace Xamarin.Forms.Platform.iOS
public override void WillRotate(UIInterfaceOrientation toInterfaceOrientation, double duration)
{
- if (!MasterDetailPageController.ShouldShowSplitMode && _presented)
+ if (!MasterDetailPage.ShouldShowSplitMode && _presented)
Presented = false;
base.WillRotate(toInterfaceOrientation, duration);
@@ -185,7 +185,7 @@ namespace Xamarin.Forms.Platform.iOS
EmptyContainers();
- PageController.SendDisappearing();
+ Page.SendDisappearing();
_disposed = true;
}
@@ -225,9 +225,9 @@ namespace Xamarin.Forms.Platform.iOS
{
if (e.PropertyName == "Master" || e.PropertyName == "Detail")
UpdateMasterDetailContainers();
- else if (e.PropertyName == MasterDetailPage.IsPresentedProperty.PropertyName)
+ else if (e.PropertyName == Xamarin.Forms.MasterDetailPage.IsPresentedProperty.PropertyName)
Presented = ((MasterDetailPage)Element).IsPresented;
- else if (e.PropertyName == MasterDetailPage.IsGestureEnabledProperty.PropertyName)
+ else if (e.PropertyName == Xamarin.Forms.MasterDetailPage.IsGestureEnabledProperty.PropertyName)
UpdatePanGesture();
else if (e.PropertyName == VisualElement.BackgroundColorProperty.PropertyName)
UpdateBackground();
@@ -259,8 +259,8 @@ namespace Xamarin.Forms.Platform.iOS
else
_detailController.View.Frame = target;
- MasterDetailPageController.MasterBounds = new Rectangle(0, 0, masterFrame.Width, masterFrame.Height);
- MasterDetailPageController.DetailBounds = new Rectangle(0, 0, frame.Width, frame.Height);
+ MasterDetailPage.MasterBounds = new Rectangle(0, 0, masterFrame.Width, masterFrame.Height);
+ MasterDetailPage.DetailBounds = new Rectangle(0, 0, frame.Width, frame.Height);
if (Presented)
_clickOffView.Frame = _detailController.View.Frame;