From e65b3a335d509f023f7f7035f4ac34741b1b8c28 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Fri, 23 Mar 2018 12:40:51 -0700 Subject: [PATCH] Fire Page Appearing event There's not really a great time to do this so I settled on firing it when it's converted to a Ooui element. Fixes #116 --- Ooui.Forms/PageExtensions.cs | 2 ++ Samples/DisplayAlertPage.xaml | 1 + Samples/DisplayAlertPage.xaml.cs | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/Ooui.Forms/PageExtensions.cs b/Ooui.Forms/PageExtensions.cs index 4ffe01d..99098ca 100644 --- a/Ooui.Forms/PageExtensions.cs +++ b/Ooui.Forms/PageExtensions.cs @@ -25,6 +25,8 @@ namespace Xamarin.Forms if (existingRenderer != null) return existingRenderer.NativeView; + ((IPageController)page).SendAppearing (); + return CreateElement (page); } diff --git a/Samples/DisplayAlertPage.xaml b/Samples/DisplayAlertPage.xaml index e610926..0c296d6 100644 --- a/Samples/DisplayAlertPage.xaml +++ b/Samples/DisplayAlertPage.xaml @@ -22,6 +22,7 @@