{
if (_tpage.SelectedItem == null)
return;
- Element.CurrentPage = _itemToItemPage[_tpage.SelectedItem];
-
//detach content from view without EvasObject changes
if (_tcontent != null)
{
_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()