<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Okra App Framework</title><link>http://okra.codeplex.com/project/feeds/rss</link><description>The Okra App Framework supports the development of Windows Store applications, in particular those implementing the MVVM pattern.</description><item><title>Updated Wiki: The Okra App Framework Bootstrapper</title><link>https://okra.codeplex.com/wikipage?title=The Okra App Framework Bootstrapper&amp;version=2</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;The Okra App Framework Bootstrapper&lt;/h1&gt;
All applications built using the Okra App Framework include a bootstrapper class whose responsibility it is to initialise any services required (both framework services and custom services) and to coordinate activation of the application with the framework.&lt;br /&gt;&lt;br /&gt;The good news is that the framework provides a base implementation &lt;b&gt;OkraBootstrapper&lt;/b&gt; that provides most of this functionality. Therefore for many applications the bootstrapper will simply be defined as,&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;"&gt;class&lt;/span&gt; AppBootstrapper : OkraBootstrapper
{
}
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Adding additional services&lt;/h2&gt;
Since by default the Okra App Framework uses MEF for composition of the application, you can add additional services to the bootstrapper as MEF imports. These will be often be services provided by the framework, however custom services may be included in the same manner. In either case the framework will ensure that all services are created prior to the first application activation being processed.&lt;br /&gt;&lt;br /&gt;For example, to add search functionality to an application you would import the &lt;b&gt;ISearchManager&lt;/b&gt; service in the bootstrapper as follows,&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;"&gt;class&lt;/span&gt; AppBootstrapper : OkraBootstrapper
{
    [Import]
    &lt;span style="color:Blue;"&gt;public&lt;/span&gt; ISearchManager SearchManager { &lt;span style="color:Blue;"&gt;get&lt;/span&gt;; &lt;span style="color:Blue;"&gt;set&lt;/span&gt;; }
}
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Initializing services&lt;/h2&gt;
The bootstrapper is also the best place to perform any service initialization required prior to activation of the application. The default &lt;b&gt;OkraBootstrapper&lt;/b&gt; base class provides a &lt;b&gt;SetupServices()&lt;/b&gt; method that can be overriden for this purpose.&lt;br /&gt;&lt;br /&gt;For example to specify a non-default search page name you would do this as follows,&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;"&gt;class&lt;/span&gt; AppBootstrapper : OkraBootstrapper
{
    [Import]
    &lt;span style="color:Blue;"&gt;public&lt;/span&gt; ISearchManager SearchManager { &lt;span style="color:Blue;"&gt;get&lt;/span&gt;; &lt;span style="color:Blue;"&gt;set&lt;/span&gt;; }

    &lt;span style="color:Blue;"&gt;protected&lt;/span&gt; &lt;span style="color:Blue;"&gt;override&lt;/span&gt; &lt;span style="color:Blue;"&gt;void&lt;/span&gt; SetupServices()
    {
        SearchManager.SearchPageName = &lt;span style="color:#A31515;"&gt;&amp;quot;MySearchPage&amp;quot;&lt;/span&gt;;
    }
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Mon, 13 May 2013 12:17:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: The Okra App Framework Bootstrapper 20130513121719P</guid></item><item><title>Updated Wiki: The Okra App Framework Bootstrapper</title><link>https://okra.codeplex.com/wikipage?title=The Okra App Framework Bootstrapper&amp;version=1</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;The Okra App Framework Bootstrapper&lt;/h1&gt;
All applications built using the Okra App Framework include a bootstrapper class whose responsibility it is to initialise any services required (both framework services and custom services) and to coordinate activation of the application with the framework.&lt;br /&gt;&lt;br /&gt;The good news is that the framework provides a base implementation &lt;b&gt;OkraBootstrapper&lt;/b&gt; that provides most of this functionality. Therefore for many applications the bootstrapper will simply be defined as,&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;"&gt;class&lt;/span&gt; AppBootstrapper : OkraBootstrapper
{
}
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Activating additional services&lt;/h2&gt;
Since by default the Okra App Framework uses MEF for composition of the application, you can add additional services to the bootstrapper as MEF imports. These will be often be services provided by the framework, however custom services may be included in the same manner. In either case the framework will ensure that all services are created prior to the first application activation being processed.&lt;br /&gt;&lt;br /&gt;For example, to add search functionality to an application you would import the &lt;b&gt;ISearchManager&lt;/b&gt; service in the bootstrapper as follows,&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;"&gt;class&lt;/span&gt; AppBootstrapper : OkraBootstrapper
{
    [Import]
    &lt;span style="color:Blue;"&gt;public&lt;/span&gt; ISearchManager SearchManager { &lt;span style="color:Blue;"&gt;get&lt;/span&gt;; &lt;span style="color:Blue;"&gt;set&lt;/span&gt;; }
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Mon, 13 May 2013 12:10:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: The Okra App Framework Bootstrapper 20130513121019P</guid></item><item><title>Updated Wiki: Documentation</title><link>https://okra.codeplex.com/documentation?version=27</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra App Framework Documentation&lt;/h1&gt;
The Okra App Framework supports the development of Windows Store applications, in particular those implementing the MVVM pattern.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note that the documentation is currently in active progress with the aim of completion over the next few weeks - where the CodePlex documentation is not available a &amp;quot;see here&amp;quot; link may redirect to a blog post on the topic. Whilst some features will have changed slightly this should get you started whilst the documentation is completed.&lt;/b&gt;&lt;br /&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Documentation"&gt;Downloading the Okra App Framework&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Creating%20a%20new%20Okra%20App%20Framework%20project&amp;referringTitle=Documentation"&gt;Creating a new Okra App Framework project&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Adding%20the%20Okra%20App%20Framework%20to%20an%20existing%20project&amp;referringTitle=Documentation"&gt;Adding the Okra App Framework to an existing project&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=The%20Okra%20App%20Framework%20Bootstrapper&amp;referringTitle=Documentation"&gt;The Okra App Framework Bootstrapper&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h2&gt;Okra Navigation Framework&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;First steps with navigation,
&lt;ul&gt;&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Defining%20pages%20and%20view-models&amp;referringTitle=Documentation"&gt;Defining pages and view-models&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Convention%20based%20page%20and%20view-model%20discovery&amp;referringTitle=Documentation"&gt;Convention based page and view-model discovery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Creating%20pages%20with%20the%20Visual%20Studio%20templates&amp;referringTitle=Documentation"&gt;Creating pages with the Visual Studio templates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Navigation%20between%20pages&amp;referringTitle=Documentation"&gt;Navigation between pages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Navigation using ICommand&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=Passing%20arguments%20to%20pages&amp;referringTitle=Documentation"&gt;Passing arguments to pages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;State persistence - making your app &amp;quot;always alive&amp;quot; (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/05/cocoon-navigation-making-your-app.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Contract support
&lt;ul&gt;&lt;li&gt;Adding a search page (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/10/app-search-and-okra-app-framework.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Adding a settings pane (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/12/settings-panes-and-okra-app-framework.html"&gt;see here&lt;/a&gt; and &lt;a href="http://andyonwpf.blogspot.co.uk/2013/02/creating-authentic-looking-settings.html"&gt;here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Sharing items with other applications&lt;/li&gt;
&lt;li&gt;Implementing a share target&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Advanced navigation scenarios
&lt;ul&gt;&lt;li&gt;Shell based navigation (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/08/shell-based-navigation-in-cocoon.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Multiple navigation sections&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h2&gt;Okra Data Framework&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Introduction to data lists (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/01/bridging-data-dividean-introduction-to.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;How to use data lists (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/04/using-cocoon-data-framework.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Data list sources (attaching to sources of data)
&lt;ul&gt;&lt;li&gt;SimpleDataListSource (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/01/simpledatalistsource-consuming-data.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;PagedDataListSource (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/02/pageddatalistsource-consuming-data-from.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Data lists (displaying data in your UI)
&lt;ul&gt;&lt;li&gt;VirtualizingDataList (&lt;a href="http://andyonwpf.blogspot.co.uk/2012/03/virtualizingdatalist-displaying-large.html"&gt;see here&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h2&gt;Samples&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://okra.codeplex.com/releases/view/91893"&gt;Okra Shell Sample&lt;/a&gt; - This sample code demonstrates how to use the Okra App Framework to navigate between pages within a larger shell frame.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/releases/view/94066"&gt;Okra Convention Sample&lt;/a&gt; - This sample code demonstrates how to use a convention based approach when defining pages and view-models with the Okra App Framework.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/releases/view/96990"&gt;Okra Search Sample&lt;/a&gt; - This sample code demonstrates how to use the search contract support within the Okra App Framework.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://okra.codeplex.com/releases/view/98887"&gt;Okra Settings Sample&lt;/a&gt; - This sample code demonstrates how to use the settings pane support within the Okra App Framework.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Mon, 13 May 2013 11:51:51 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20130513115151A</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=20</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;HomePage.xaml.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot;, &amp;quot;GroupDetailPage.xaml.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows (Note that if you press &lt;b&gt;F6&lt;/b&gt; to build the application any references you have missed will be easily located as build errors)&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;4. Add a new folder to the project named &lt;b&gt;Images&lt;/b&gt; and copy the files from the &lt;b&gt;Images&lt;/b&gt; folder of the tutorial assets (downloadable from here). This is easiest to accomplish by dragging the files from Windows Explorer and dropping them onto the newly created &lt;b&gt;Images&lt;/b&gt; folder.&lt;/blockquote&gt;&lt;blockquote&gt;5. Next we need to load the recipe data at application start-up. This will need to be completed before the first page is displayed so open the &amp;quot;AppBootstrapper.cs&amp;quot; file.&lt;/blockquote&gt;&lt;blockquote&gt;6. Add the following using statements to the start of the file.&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; OkraCookbook.Data;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Activation;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Core;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;7. Add the following overridden method to the &lt;b&gt;AppBootstrapper&lt;/b&gt; class&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;protected&lt;/span&gt; async &lt;span style="color:Blue;"&gt;override&lt;/span&gt; &lt;span style="color:Blue;"&gt;void&lt;/span&gt; OnActivated(CoreApplicationView sender, IActivatedEventArgs args)
{
    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (args.PreviousExecutionState != ApplicationExecutionState.Running)
        await RecipeDataSource.LoadLocalDataAsync();

    &lt;span style="color:Blue;"&gt;base&lt;/span&gt;.OnActivated(sender, args);
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 17:00:34 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512050034P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=19</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;HomePage.xaml.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot;, &amp;quot;GroupDetailPage.xaml.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows (Note that if you press &lt;b&gt;F6&lt;/b&gt; to build the application any references you have missed will be easily located as build errors)&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;4. Add a new folder to the project named &lt;b&gt;Images&lt;/b&gt; and copy the files from the &lt;b&gt;Images&lt;/b&gt; folder of the tutorial assets (downloadable from here). This is easiest to accomplish by dragging the files from Windows Explorer and dropping them onto the newly created &lt;b&gt;Images&lt;/b&gt; folder.&lt;/blockquote&gt;&lt;blockquote&gt;5. Next we need to load the recipe data at application start-up. This will need to be completed before the first page is displayed so open the &amp;quot;AppBootstrapper.cs&amp;quot; file.&lt;/blockquote&gt;&lt;blockquote&gt;6. Add the following using statements to the start of the file.&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; OkraCookbook.Data;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Activation;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Core;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;6. Add the following overridden method to the &lt;b&gt;AppBootstrapper&lt;/b&gt; class&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;protected&lt;/span&gt; async &lt;span style="color:Blue;"&gt;override&lt;/span&gt; &lt;span style="color:Blue;"&gt;void&lt;/span&gt; OnActivated(CoreApplicationView sender, IActivatedEventArgs args)
{
    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (args.PreviousExecutionState != ApplicationExecutionState.Running)
        await RecipeDataSource.LoadLocalDataAsync();

    &lt;span style="color:Blue;"&gt;base&lt;/span&gt;.OnActivated(sender, args);
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 17:00:09 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512050009P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=18</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;HomePage.xaml.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot;, &amp;quot;GroupDetailPage.xaml.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows (Note that if you press &lt;b&gt;F6&lt;/b&gt; to build the application any references you have missed will be easily located as build errors)&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;4. Add a new folder to the project named &lt;b&gt;Images&lt;/b&gt; and copy the files from the &lt;b&gt;Images&lt;/b&gt; folder of the tutorial assets (downloadable from here). This is easiest to accomplish by dragging the files from Windows Explorer and dropping them onto the newly created &lt;b&gt;Images&lt;/b&gt; folder.&lt;/blockquote&gt;&lt;blockquote&gt;5. Next we need to load the recipe data at application start-up. This will need to be completed before the first page is displayed so open the &amp;quot;AppBootstrapper.cs&amp;quot; file.&lt;/blockquote&gt;&lt;blockquote&gt;6. Add the following using statements to the start of the file.&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; OkraCookbook.Data;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Activation;
&lt;span style="color:Blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.Core;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;6. Add the following overridden method to the &lt;b&gt;AppBootstrapper&lt;/b&gt; class&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;protected&lt;/span&gt; async &lt;span style="color:Blue;"&gt;override&lt;/span&gt; &lt;span style="color:Blue;"&gt;void&lt;/span&gt; OnActivated(CoreApplicationView sender, IActivatedEventArgs args)
{
    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (args.PreviousExecutionState != ApplicationExecutionState.Running)
        await LoadLocalDataAsync();

    &lt;span style="color:Blue;"&gt;base&lt;/span&gt;.OnActivated(sender, args);
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:59:13 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512045913P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=17</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;HomePage.xaml.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot;, &amp;quot;GroupDetailPage.xaml.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows (Note that if you press &lt;b&gt;F6&lt;/b&gt; to build the application any references you have missed will be easily located as build errors)&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;4. Add a new folder to the project named &lt;b&gt;Images&lt;/b&gt; and copy the files from the &lt;b&gt;Images&lt;/b&gt; folder of the tutorial assets (downloadable from here). This is easiest to accomplish by dragging the files from Windows Explorer and dropping them onto the newly created &lt;b&gt;Images&lt;/b&gt; folder.&lt;/blockquote&gt;&lt;blockquote&gt;5. Next we need to load the recipe data at application start-up. This will need to be completed before the first page is displayed so open the &amp;quot;AppBootstrapper.cs&amp;quot; file.&lt;/blockquote&gt;&lt;blockquote&gt;6. Add the following overridden method to the &lt;b&gt;AppBootstrapper&lt;/b&gt; class&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;protected&lt;/span&gt; async &lt;span style="color:Blue;"&gt;override&lt;/span&gt; &lt;span style="color:Blue;"&gt;void&lt;/span&gt; OnActivated(Windows.ApplicationModel.Core.CoreApplicationView sender, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
{
    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (args.PreviousExecutionState != Windows.ApplicationModel.Activation.ApplicationExecutionState.Running)
        await RecipeDataSource.LoadLocalDataAsync();

    &lt;span style="color:Blue;"&gt;base&lt;/span&gt;.OnActivated(sender, args);
}
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:56:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512045614P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=16</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;HomePage.xaml.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot;, &amp;quot;GroupDetailPage.xaml.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:49:39 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512044939P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=15</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample data in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:47:40 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512044740P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=14</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Replace all references to sample in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:47:22 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512044722P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=13</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;
&lt;h2&gt;Loading recipe data&lt;/h2&gt;
Now the project will have the correct branding, splash screen and tile icon. However, we are still displaying the sample data provided with the project template. Next we will update the project to display recipe data.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &lt;b&gt;Data&lt;/b&gt; folder from the solution explorer and delete the &amp;quot;SampleDataSource.cs&amp;quot; and &amp;quot;DesignDataSource.cs&amp;quot; files.&lt;/blockquote&gt;&lt;blockquote&gt;2. Right-click the &lt;b&gt;Data&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the files from the &lt;b&gt;Data&lt;/b&gt; folder of the tutorial assets (downloadable from here). The items added are,&lt;/blockquote&gt;
&lt;ul&gt;&lt;li&gt;RecipeDataSource.cs - Contains the data models and data source for the recipe data. The &lt;b&gt;RecipeDataSource&lt;/b&gt; class includes methods named &lt;b&gt;LoadLocalDataAsync()&lt;/b&gt; and &lt;b&gt;LoadRemoteDataAsync()&lt;/b&gt; that load recipe data from a local file or a Windows Azure web service respectively&lt;/li&gt;
&lt;li&gt;DesignDataSource.cs - Contains a class that can generate sample data for display at design-time&lt;/li&gt;
&lt;li&gt;Recipes.txt - A text file containing JSON formatted data for use by the &lt;b&gt;RecipeDataSource&lt;/b&gt; class&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;blockquote&gt;3. Replace all references to sample in &amp;quot;HomeViewModel.cs&amp;quot;, &amp;quot;GroupDetailViewModel.cs&amp;quot; and &amp;quot;ItemDetailViewModel.cs&amp;quot; as follows,&lt;/blockquote&gt;
&lt;ul&gt;&lt;li&gt;Replace &lt;b&gt;SampleDataSource&lt;/b&gt; with &lt;b&gt;RecipeDataSource&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Replace &lt;b&gt;SampleDataGroup&lt;/b&gt; with &lt;b&gt;RecipeDataGroup&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Replace &lt;b&gt;SampleDataItem&lt;/b&gt; with &lt;b&gt;RecipeDataItem&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:46:04 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512044604P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=12</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:33:29 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512043329P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=11</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;{code:xml}&lt;/blockquote&gt;&lt;/blockquote&gt;&amp;lt;x:String x:Key=&amp;quot;AppName&amp;quot;&amp;gt;Okra Cookbook&amp;lt;/x:String&amp;gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;{code:xml}&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:33:05 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512043305P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=10</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page and branding&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;, as well as updating the branding images and text.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote&gt;3. In the Visual Studio solution explorer, right-click the &lt;b&gt;Assets&lt;/b&gt; folder and use &lt;b&gt;Add &amp;gt; Existing Item&lt;/b&gt; to add the images from the &lt;b&gt;Branding&lt;/b&gt; folder of the tutorial assets (downloadable from here), overwriting the existing files.&lt;/blockquote&gt;&lt;blockquote&gt;4. Open the &amp;quot;Package.appxmanifest&amp;quot; file and change the application&amp;#39;s display name to &amp;quot;Okra Cookbook&amp;quot; and description to &amp;quot;Okra Cookbook Application&amp;quot;&lt;/blockquote&gt;&lt;blockquote&gt;5. Also select the &lt;b&gt;Wide Logo&lt;/b&gt; item from the Visual Assets section and set this to &amp;quot;Assets\WideLogo.png&amp;quot;.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:32:38 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512043238P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=9</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customising the start page&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:19:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512041912P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=8</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items including,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;[ViewModelExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the group header buttons to directly data-bind to the &lt;b&gt;NavigateToGroupDetail&lt;/b&gt; method without requiring any code in the code-behind file.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &amp;quot;HomeDesignData.cs&amp;quot; file you find a simple class which derives from &lt;b&gt;HomeViewModel&lt;/b&gt;. This data will be used in the Visual Studio designer at design-time to allow you to see how your application will look without requiring any real data (which may involve a call to a database or web service). In this case we simply set the &lt;b&gt;Groups&lt;/b&gt; property to some sample data generated by the &lt;b&gt;DesignDataSource&lt;/b&gt; class.&lt;br /&gt;
&lt;h2&gt;Customise the start page&lt;/h2&gt;
You will note that the home page currently is titled &amp;quot;OkraCookbook&amp;quot;. We will change that to read &amp;quot;Okra Cookbook&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. Open the &amp;quot;App.xaml&amp;quot; file&lt;/blockquote&gt;&lt;blockquote&gt;2. Change the string resource named &amp;quot;AppName&amp;quot; to,&lt;/blockquote&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt; &lt;span style="color:Red;"&gt;x:Key&lt;/span&gt;&lt;span style="color:Blue;"&gt;=&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;AppName&lt;/span&gt;&lt;span style="color:Black;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;Okra Cookbook&lt;span style="color:Blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515;"&gt;x&lt;/span&gt;&lt;span style="color:Blue;"&gt;:&lt;/span&gt;&lt;span style="color:#A31515;"&gt;String&lt;/span&gt;&lt;span style="color:Blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:18:32 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512041832P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=7</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;[PageExport(&amp;quot;Home&amp;quot;)]&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;{[}ViewModelExport(&amp;quot;Home&amp;quot;){]}&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:11:52 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512041152P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=6</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;{[}PageExport(&amp;quot;Home&amp;quot;){]}&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;{[}ViewModelExport(&amp;quot;Home&amp;quot;){]}&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:11:21 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512041121P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=5</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;
&lt;h2&gt;Exploring the project template&lt;/h2&gt;
You will notice the project template has added a number of folders and files to the solution, many of which will be familiar to you if you have used any of the standard Visual Studio Windows Store templates.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679210" alt="Project&amp;#32;Structure.png" title="Project&amp;#32;Structure.png" /&gt;&lt;br /&gt;&lt;br /&gt;The folders include,
&lt;ul&gt;&lt;li&gt;Assets - This contains the images used to brand the application.&lt;/li&gt;
&lt;li&gt;Common - This contains a number of common files used for Windows Store XAML development including base classes, value converters and style resources.&lt;/li&gt;
&lt;li&gt;Data - This contains a &amp;quot;SampleDataSource.cs&amp;quot; file with the data source used for the placeholder data when you run the application. In addition a &amp;quot;DesignDataSource.cs&amp;quot; file contains classes for generating design-time data to aid with designing the user interface of the application.&lt;/li&gt;
&lt;li&gt;Pages - This folder contains a number of subfolders, one for each of the pages within the application (Home, GroupDetail &amp;amp; ItemDetail). Each of these contain a XAML page, a view-model and some design-time data.&lt;/li&gt;
&lt;li&gt;App.xaml - This holds any application wide resources.&lt;/li&gt;
&lt;li&gt;AppBootstrapper.cs - This is a simple bootstrapper to which we will add further services at a later stage.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;If you open the &lt;b&gt;Pages &amp;gt; Home&lt;/b&gt; folder and select the file &amp;quot;HomePage.xaml&amp;quot; you will see a typical XAML designed user interface. Note that because we have some design-time data available you can get a good idea of how the resulting user interface will be displayed.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomePage.xaml.cs&amp;quot; code-behind file you will see that very little logic is present compared to the standard Visual Studio templates. Only an &lt;b&gt;ItemClick&lt;/b&gt; handler is included that forwards any click events onto the underlying view-model (this is required as Windows Store applications do not currently support behaviours). Also note the &lt;b&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=PageExport%28%22Home%22%29&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;PageExport&amp;#40;&amp;#34;Home&amp;#34;&amp;#41;&lt;/a&gt;&lt;/b&gt; attribute applied to the class that tells the Okra App Framework that this is the home page of the application.&lt;br /&gt;&lt;br /&gt;If you open the &amp;quot;HomeViewModel.cs&amp;quot; file you will see a number of items,
&lt;ul&gt;&lt;li&gt;A &lt;b&gt;&lt;a href="https://okra.codeplex.com/wikipage?title=ViewModelExport%28%22Home%22%29&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;ViewModelExport&amp;#40;&amp;#34;Home&amp;#34;&amp;#41;&lt;/a&gt;&lt;/b&gt; attribute that tells the Okra App Framework that this is the view-model to use for the home page of the application. When the application is run this will be automatically associated with the respective XAML file.&lt;/li&gt;
&lt;li&gt;A number of properties that are data-bound from the XAML page.&lt;/li&gt;
&lt;li&gt;A &lt;b&gt;NavigateToGroupDetailCommand&lt;/b&gt; property that allows the &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 16:10:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512041031P</guid></item><item><title>Updated Wiki: Okra Cookbook - Creating a Windows Store app</title><link>https://okra.codeplex.com/wikipage?title=Okra Cookbook - Creating a Windows Store app&amp;version=4</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Okra Cookbook - Creating a Windows Store app&lt;/h1&gt;
In this tutorial you will create a new Windows Store MVVM application using the Okra App Framework templates for Visual Studio. You will familiarise yourself with the project structure, then customise the branding and UI. In addition you will load recipe data from an included data source and use it to replace the placeholder content.&lt;br /&gt;
&lt;h2&gt;Creating a new MVVM Windows Store application&lt;/h2&gt;
&lt;blockquote&gt;1. Start Visual Studio 2012 and download the Okra App Framework Visual Studio Extensions if you have not already installed these. Details on how to install the extensions are available &lt;a href="https://okra.codeplex.com/wikipage?title=Downloading%20the%20Okra%20App%20Framework&amp;referringTitle=Okra%20Cookbook%20-%20Creating%20a%20Windows%20Store%20app"&gt;here&lt;/a&gt;.&lt;/blockquote&gt;&lt;blockquote&gt;2. From the &lt;b&gt;File &amp;gt; New project&lt;/b&gt; menu create a new Visual C# project named &amp;quot;OkraCookbook&amp;quot;. Be sure to select the &lt;b&gt;Okra Grid App (XAML)&lt;/b&gt; project template from the &lt;b&gt;Visual C# / OkraAppFramework&lt;/b&gt; category.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=okra&amp;DownloadId=679174" alt="New&amp;#32;Project&amp;#32;Dialog.png" title="New&amp;#32;Project&amp;#32;Dialog.png" /&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;3. Start debugging by pressing &lt;b&gt;F5&lt;/b&gt; and explore the application, clicking on the group headers and items to view the various pages provided by the template. You will note that the application is identical in behaviour to the default Visual Studio Grid App template.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>AndyWilkinson</author><pubDate>Sun, 12 May 2013 15:39:54 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Okra Cookbook - Creating a Windows Store app 20130512033954P</guid></item></channel></rss>