- Some properties like Width/Height have wrong values under Appearing event
Change-Id: Ib555405e9d79ae3475f87f2d1cb53bbf9e51cda8
Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
naviItem.TitleBarVisible = false;
((Application)Page.RealParent).NavigationProxy.Inner = this;
- CurrentPageController?.SendAppearing();
+ Device.StartTimer(TimeSpan.Zero, () =>
+ {
+ CurrentPageController?.SendAppearing();
+ return false;
+ });
}
public SizeRequest GetNativeSize(VisualElement view, double widthConstraint, double heightConstraint)
{
(_previousPage as IPageController)?.SendDisappearing();
_previousPage = Element.CurrentPage;
- (_previousPage as IPageController)?.SendAppearing();
+ Device.StartTimer(TimeSpan.Zero, () =>
+ {
+ (_previousPage as IPageController)?.SendAppearing();
+ return false;
+ });
}
else if (e.PropertyName == NavigationPage.BarTextColorProperty.PropertyName)
UpdateTitle(CurrentPage);