This project is read-only.

Adding the Okra App Framework to an existing project

If you wish to add the Okra App Framework to an existing Windows Store project then the steps required are,

1. Download the Okra App Framework and add the references to your project (downloading via NuGet is recommended)
2. Add a new 'AppBootstrapper.cs' file to your project with the following code,

public class AppBootstrapper : OkraBootstrapper
{
}

3. Clean up your 'App.xaml.cs' file so that it looks like,

using Okra;

namespace MyOkraProject
{
    sealed partial class App : OkraApplication
    {
        public App()
            : base(new AppBootstrapper())
        {
            this.InitializeComponent();
        }
    }
}

4. Change the 'App.xaml' definition to derive from OkraApplication (note that you can keep any existing resources and namespace definitions if desired),

<okra:OkraApplication
    ...
    xmlns:okra="using:Okra">

    ...

</okra:OkraApplication>

Last edited Mar 24, 2013 at 6:26 PM by AndyWilkinson, version 3

Comments

No comments yet.