summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-02-02 15:35:23 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:24 (GMT)
commit509954d0a013acdf7508644c1fb394bea626e587 (patch)
tree3cf4f58b17a28b5b76bdb03a39a30ad4c0a4dd59 /Xamarin.Forms.Core
parenta787e5f5b177727384bb45d772547735c1269adf (diff)
downloadxamarin-forms-509954d0a013acdf7508644c1fb394bea626e587.zip
xamarin-forms-509954d0a013acdf7508644c1fb394bea626e587.tar.gz
xamarin-forms-509954d0a013acdf7508644c1fb394bea626e587.tar.bz2
[Core] Added RootPage to NavigationPage (#464)
* d * removed whitespace * Using ArgumentNullException * changes
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/NavigationPage.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/NavigationPage.cs b/Xamarin.Forms.Core/NavigationPage.cs
index f20a617..a199670 100644
--- a/Xamarin.Forms.Core/NavigationPage.cs
+++ b/Xamarin.Forms.Core/NavigationPage.cs
@@ -312,6 +312,9 @@ namespace Xamarin.Forms
if (index == 0)
RootPage = page;
+ if (index == 0)
+ RootPage = page;
+
// Shouldn't be required?
if (Width > 0 && Height > 0)
ForceLayout();
@@ -370,6 +373,9 @@ namespace Xamarin.Forms
if (InternalChildren.Count == 1)
RootPage = page;
+ if (PageController.InternalChildren.Count == 1)
+ RootPage = page;
+
CurrentPage = page;
}