summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.UAP
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-04 14:22:34 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-05-04 14:22:34 (GMT)
commita8acdcc11793c9f44098f2cd478d51677d742945 (patch)
tree811cf1ee2e2ff0baa8674f116b6b5c08590f56cf /Xamarin.Forms.Platform.UAP
parent8d383746caab00dd3ee0b62dc992a2a99c7a6d06 (diff)
downloadxamarin-forms-a8acdcc11793c9f44098f2cd478d51677d742945.zip
xamarin-forms-a8acdcc11793c9f44098f2cd478d51677d742945.tar.gz
xamarin-forms-a8acdcc11793c9f44098f2cd478d51677d742945.tar.bz2
Add IMasterDetailPageController and update renderers (#146)
Diffstat (limited to 'Xamarin.Forms.Platform.UAP')
-rw-r--r--Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs b/Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs
index e2ccb31..6f54e80 100644
--- a/Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs
+++ b/Xamarin.Forms.Platform.UAP/MasterDetailPageRenderer.cs
@@ -56,6 +56,8 @@ namespace Xamarin.Forms.Platform.UWP
set { Control.ToolbarForeground = value; }
}
+ IMasterDetailPageController MasterDetailPageController => Element as IMasterDetailPageController;
+
bool ITitleProvider.ShowTitle
{
get { return _showTitle; }
@@ -234,8 +236,8 @@ namespace Xamarin.Forms.Platform.UWP
Windows.Foundation.Size masterSize = Control.MasterSize;
Windows.Foundation.Size detailSize = Control.DetailSize;
- Element.MasterBounds = new Rectangle(0, 0, masterSize.Width, masterSize.Height);
- Element.DetailBounds = new Rectangle(0, 0, detailSize.Width, detailSize.Height);
+ MasterDetailPageController.MasterBounds = new Rectangle(0, 0, masterSize.Width, masterSize.Height);
+ MasterDetailPageController.DetailBounds = new Rectangle(0, 0, detailSize.Width, detailSize.Height);
}
void UpdateDetail()
@@ -290,7 +292,7 @@ namespace Xamarin.Forms.Platform.UWP
void UpdateMode()
{
- Control.ShouldShowSplitMode = Element.ShouldShowSplitMode;
+ Control.ShouldShowSplitMode = MasterDetailPageController.ShouldShowSplitMode;
}
#if WINDOWS_UWP