summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-10-03 06:09:28 -0500
committerRui Marinho <me@ruimarinho.net>2016-10-03 12:09:28 +0100
commit5372d216df44bf09a160cfd9649ce97776ed343d (patch)
treed8bdf0d9e3d2b17d00d3ac4ddc97d5d337641acc
parent4f8af14f13f34d9b66d92e315c8486edd28e851a (diff)
downloadxamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.tar.gz
xamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.tar.bz2
xamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.zip
Tab children should be cast to Page (#398)
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
index 626a61f1..f9802a21 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
@@ -375,7 +375,7 @@ namespace Xamarin.Forms.Platform.iOS
var originalIndex = -1;
if (int.TryParse(viewControllers[i].TabBarItem.Tag.ToString(), out originalIndex))
{
- var page = (TabbedPage)((IPageController)Tabbed).InternalChildren[originalIndex];
+ var page = (Page)((IPageController)Tabbed).InternalChildren[originalIndex];
TabbedPage.SetIndex(page, i);
}
}