summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-10-03 11:09:28 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-10-03 11:09:28 (GMT)
commit5372d216df44bf09a160cfd9649ce97776ed343d (patch)
treed8bdf0d9e3d2b17d00d3ac4ddc97d5d337641acc
parent4f8af14f13f34d9b66d92e315c8486edd28e851a (diff)
downloadxamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.zip
xamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.tar.gz
xamarin-forms-5372d216df44bf09a160cfd9649ce97776ed343d.tar.bz2
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 626a61f..f9802a2 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);
}
}