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-03-24 13:19:01 +0900
commit6c178b33cbce77d41f833e15e23e042076685f9a (patch)
tree6f449bc11e572ddb14d34412d1e0ffd1f46036d8
parentd6dc99e2dd1cb775d4bcf364359256a8f8defc50 (diff)
downloadxamarin-forms-6c178b33cbce77d41f833e15e23e042076685f9a.tar.gz
xamarin-forms-6c178b33cbce77d41f833e15e23e042076685f9a.tar.bz2
xamarin-forms-6c178b33cbce77d41f833e15e23e042076685f9a.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()