summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchungryeol lim <cdark.lim@samsung.com>2017-01-11 16:26:19 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-04-24 13:36:47 +0900
commit71048a1e6767ecad3b1ec3a6eb093dea05aa45ed (patch)
treed7b09473f450d2338e5db12e47c9a24215896e4e
parentef513157b7aac84c59a3184fc45146aa7c9a0b35 (diff)
downloadxamarin-forms-71048a1e6767ecad3b1ec3a6eb093dea05aa45ed.tar.gz
xamarin-forms-71048a1e6767ecad3b1ec3a6eb093dea05aa45ed.tar.bz2
xamarin-forms-71048a1e6767ecad3b1ec3a6eb093dea05aa45ed.zip
Fixed Appearing event calling sequence issue
- Some properties like Width/Height have wrong values under Appearing event Change-Id: Ib555405e9d79ae3475f87f2d1cb53bbf9e51cda8 Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
-rw-r--r--Xamarin.Forms.Platform.Tizen/Platform.cs6
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs6
2 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Platform.cs b/Xamarin.Forms.Platform.Tizen/Platform.cs
index c7a89b06..69a435e3 100644
--- a/Xamarin.Forms.Platform.Tizen/Platform.cs
+++ b/Xamarin.Forms.Platform.Tizen/Platform.cs
@@ -137,7 +137,11 @@ namespace Xamarin.Forms.Platform.Tizen
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)
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
index c8f8606a..361f0912 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs
@@ -102,7 +102,11 @@ namespace Xamarin.Forms.Platform.Tizen
{
(_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);