Fixed Appearing event calling sequence issue
authorchungryeol lim <cdark.lim@samsung.com>
Wed, 11 Jan 2017 07:26:19 +0000 (16:26 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:16 +0000 (11:11 +0900)
- Some properties like Width/Height have wrong values under Appearing event

Change-Id: Ib555405e9d79ae3475f87f2d1cb53bbf9e51cda8
Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
Xamarin.Forms.Platform.Tizen/Platform.cs
Xamarin.Forms.Platform.Tizen/Renderers/NavigationPageRenderer.cs

index c7a89b0..69a435e 100644 (file)
@@ -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)
index c8f8606..361f091 100644 (file)
@@ -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);