summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Czaja <p.czaja@samsung.com>2017-01-31 11:05:15 +0100
committerKangho Hur <kangho.hur@samsung.com>2017-02-03 13:28:06 +0900
commitccdc8bc74aecffb7c5e12ae9c64d1eb016659c3b (patch)
tree72d5a6457b5b16e1a60226906a6ccacb573d01f1
parenta311ce30503279889ce947b20afe6148360722fa (diff)
downloadxamarin-forms-ccdc8bc74aecffb7c5e12ae9c64d1eb016659c3b.tar.gz
xamarin-forms-ccdc8bc74aecffb7c5e12ae9c64d1eb016659c3b.tar.bz2
xamarin-forms-ccdc8bc74aecffb7c5e12ae9c64d1eb016659c3b.zip
[TabbedPage] Add sending OnAppearing and OnDisappearing notifications
Change-Id: Id8094a1a06a96934ee0c41015fd8da2c1421e4bd Signed-off-by: Piotr Czaja <p.czaja@samsung.com>
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
index 2afacfbd..dd8c44cd 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
@@ -146,8 +146,6 @@ namespace Xamarin.Forms.Platform.Tizen
{
if (_tpage.SelectedItem == null)
return;
- Element.CurrentPage = _itemToItemPage[_tpage.SelectedItem];
-
//detach content from view without EvasObject changes
if (_tcontent != null)
{
@@ -155,14 +153,18 @@ namespace Xamarin.Forms.Platform.Tizen
_tcontent.Hide();
//unpack content that is hiden an prepare for new content
_box.UnPack(_tcontent);
+ (Element.CurrentPage as IPageController)?.SendDisappearing();
}
+ Element.CurrentPage = _itemToItemPage[_tpage.SelectedItem];
+
//create EvasObject using renderer and remember to not destroy
- //it for better performance (creat once)
+ //it for better performance (create once)
_tcontent = Platform.GetOrCreateRenderer(Element.CurrentPage).NativeView;
_tcontent.SetAlignment(-1, -1);
_tcontent.SetWeight(1, 1);
_tcontent.Show();
_box.PackEnd(_tcontent);
+ (Element.CurrentPage as IPageController)?.SendAppearing();
}
void CurrentPageChanged()