Baseflow / Xamarin-Sidebar

A slideout navigation control for Xamarin.iOS
https://baseflow.com
Apache License 2.0
113 stars 67 forks source link

Unable to use an existing Xamarin Form #40

Closed eusebiu closed 8 years ago

eusebiu commented 8 years ago

I noticed that if in the sample for XF you replace (in RootViewController): NavController.PushViewController(new IntroPage().CreateViewController(), false); with

var xfPage = (Page)this.Element;
NavController.PushViewController(xfPage.CreateViewController(), false);

you'll get an empty screen.

If the IntroPage uses custom styles (StaticResource), new-ing it will cause a runtime exception.