Search code examples
xamlxamarinxamarin.formsxamarin.iosstoryboard

Xamarin cross platform app to redirect to main.storyboard


I am currently developing a cross platform app using Xamarin Forms and can't quite get it to redirect ios to a storyboard after launch screen.

Does anyone know how to do this? Any help would be appreciated

Thanks Pudsey


Solution

  • StoryBoard is not available in the Xamarin.forms project. It can be only used in the Xamarin.iOS project. You can see in the FinishedLaunching method in iOS project:

    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
        global::Xamarin.Forms.Forms.Init();
        LoadApplication(new App());
    
        return base.FinishedLaunching(app, options);
    }
    

    It loads the new App() which is the class in the Xamarin.forms project and then load the pages there in App class. Both Android, iOS ,UWP apps share the UI, design, logic and etc in those pages. You can't redirect to main.storyboard at that time.

    You can read this document about how-xamarinforms-works.

    Also, you can customize the appearance and behavior of Xamarin.Forms controls on each platform by using custom-renderer