summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/MasterDetailRenderer.cs
diff options
context:
space:
mode:
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;