diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2017-02-02 09:35:23 -0600 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 13:36:43 +0900 |
commit | 80e5482487f8a37d89b620f54f4ff3c12bcc5b83 (patch) | |
tree | af977f42e69121d312c1ab09aa9e0cdfaa8054f7 /Xamarin.Forms.Core | |
parent | e955183892db481f7cc9d9bca3a739e2d06a8130 (diff) | |
download | xamarin-forms-80e5482487f8a37d89b620f54f4ff3c12bcc5b83.tar.gz xamarin-forms-80e5482487f8a37d89b620f54f4ff3c12bcc5b83.tar.bz2 xamarin-forms-80e5482487f8a37d89b620f54f4ff3c12bcc5b83.zip |
[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.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/NavigationPage.cs b/Xamarin.Forms.Core/NavigationPage.cs index f20a617a..a199670a 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; } |