summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-06-16 09:45:09 -0600
committerRui Marinho <me@ruimarinho.net>2016-06-16 16:45:09 +0100
commitd5be2f0144ca810fdfbf59808d526c26fe86017e (patch)
tree3ad7e4465307cd6d633184e05d85eb3a4df59e01 /Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
parent04f7bd296ee67af9189ecd7fdfbd2808ca16ce9a (diff)
downloadxamarin-forms-d5be2f0144ca810fdfbf59808d526c26fe86017e.tar.gz
xamarin-forms-d5be2f0144ca810fdfbf59808d526c26fe86017e.tar.bz2
xamarin-forms-d5be2f0144ca810fdfbf59808d526c26fe86017e.zip
Prep Page for removal of InternalsVisibleTo (#150)
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs b/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
index 25ca8465..9f05cb87 100644
--- a/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
@@ -24,6 +24,8 @@ namespace Xamarin.Forms.Platform.WinPhone
public bool Visible { get; private set; }
+ IPageController PageController => Element as IPageController;
+
protected override System.Windows.Size ArrangeOverride(System.Windows.Size finalSize)
{
UpdateSizes(finalSize.Width, finalSize.Height);
@@ -49,11 +51,11 @@ namespace Xamarin.Forms.Platform.WinPhone
{
if (Element.IsPresented)
Toggle();
- Element.SendAppearing();
+ PageController.SendAppearing();
};
Unloaded += (sender, args) =>
{
- Element.SendDisappearing();
+ PageController.SendDisappearing();
if (Visible)
{
var platform = (Platform)Element.Platform;