<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Timmy Kokke</title>
	<atom:link href="http://www.timmykokke.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timmykokke.com</link>
	<description>dev, ux and design in web and windows</description>
	<lastBuildDate>Thu, 09 May 2013 20:58:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Extending Blend for Visual Studio</title>
		<link>http://www.timmykokke.com/2013/04/extending-blend-for-visual-studio/</link>
		<comments>http://www.timmykokke.com/2013/04/extending-blend-for-visual-studio/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 21:12:23 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Blend for Visual Studio]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Extensions]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=875</guid>
		<description><![CDATA[Once upon a time, in a galaxy far away, I wrote a couple of tutorials on how to write extensions for Expression Blend. Today there’s still not much information available on how to write your own extensions. But it is still possible to extend Blend for Visual Studio. The way to do this is slightly [...]]]></description>
				<content:encoded><![CDATA[<p>Once upon a time, in a galaxy far away, I wrote a couple of tutorials on how to write extensions for Expression Blend. Today there’s still not much information available on how to write your own extensions. But it is still possible to extend Blend for Visual Studio. The way to do this is slightly changed though.</p>
<p>I recently came across a question at <a href="http://stackoverflow.com/questions/14843732/expression-blend-sketchflow-addin" target="_blank">StackOverflow.com</a> that made me decide to update/rewrite some that older tutorials.</p>
<p>Instead of building some dummy extension I’d like to show you how to build an extensions that might be useful for developers of Windows Store apps and Windows Phone apps. The extension is going to display a list of characters of the Segoe UI Symbols font you can use in you apps.</p>
<h2>Getting Started</h2>
<p>To be able to build directly into the extensions folder of Blend and have Visual Studio debug them you’ll have to start Visual Studio as administrator.</p>
<p>When Visual Studio is started create a new WPF User Control Library project. This will add the necessary references for creating a user control that will be our panel in Blend.</p>
<p>I named the extension <em>SegoeSymbol</em>, but feel free to use anything you like…</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/image1.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/04/image_thumb1.png" width="720" height="402" border="0" /></a></p>
<p>Next we’ll have to change some of the configurations of the project to have Blend pick the extension right from it’s extensions folder.</p>
<p>Go to the properties of the the project and change the <em>Assembly Name</em> on the <em>Application</em> tab to “<em>SegoeSymbol.Extension” </em>. This will name the assembly SegoeSymbol.Extension.dll. All extensions need to have the .extension.dll suffix.</p>
<p>Also change the <em>Target framework</em> to <em>.NET Framework 4.5.</em></p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29561b27.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="SNAGHTML29561b27" alt="SNAGHTML29561b27" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29561b27_thumb.png" width="531" height="309" border="0" /></a></p>
<p>Set the <em>Output Path</em> on the <em>Build</em> tab to<em> “c:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\Extensions\”</em> . If you have installed Visual Studio 2012 in any other location this path might be different. Also, make sure the Extensions folder exists.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29705c9a.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="SNAGHTML29705c9a" alt="SNAGHTML29705c9a" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29705c9a_thumb.png" width="720" height="154" border="0" /></a></p>
<p>The last property to changes is the <em>Start Action</em> on the<em> Debug</em> tab. Set this to the full path to “<em>Blend.exe</em>”. This way Visuals Studio will start Blend when you hit F5 and attaches the debugger to the process enabling you to set breakpoints and such.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29737355.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="SNAGHTML29737355" alt="SNAGHTML29737355" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML29737355_thumb.png" width="720" height="276" border="0" /></a></p>
<h2>Code</h2>
<p>Before we can do anything with this extension we need some code. The project we just created doesn’t have a class file yet, so we’ll have to add a one. Name it <em>SegoeSymbol. </em>This class will be the entry point for the extension.</p>
<p>This class has to implement the <em>IPackage</em> interface from Blend. To get this interface you’ll have to reference <em>Microsoft.Expression.Extensibility.dll</em>. You can this assembly in the root folder of Blend, the same folder you’ve found Blend.exe in a bit earlier.</p>
<p>Implementing this interface will give you two methods, Load and Unload. The Load method is called when Blend loads the extension. And, you might have guessed, Unload is called when Blend unloads the extension. Blend will load the the extension when it is started and unload the extension when it is shut down.</p>
<p>Blend for Visual Studio uses the Managed Extensibility Framework, or MEF, to load extensions. MEF is included in the .NET framework. All you have to do is find the reference to <em>System.ComponentModel.Composition. </em>MEF works by decorating a class you want to enable as extensions with the Export attribute and providing that with the type you’d like to export. The other side, Blend in this case, is using an <em>Import</em> based on the <em>IPackage</em> interface to get to the extension. By now your code should look something like this:</p>
<pre class="brush:[csharp]">namespace SegoeSymbol
{
    using System.ComponentModel.Composition;
    using Microsoft.Expression.Extensibility;

    [Export(typeof (IPackage))]
    public class SegoeSymbol : IPackage
    {
        public void Load(IServices services)
        {
        }

        public void Unload()
        {
        }
    }
}</pre>
<p>One last thing before you build and run your code. By default all assemblies referenced that are not in the GAC are copied to the output directory. Because Blend has everything you need, you can set the <em>Copy Local</em> property of all references to <em>False. </em>If you need to have a reference included with your extensions you can leave that one to true.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML2a8e3689.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="SNAGHTML2a8e3689" alt="SNAGHTML2a8e3689" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML2a8e3689_thumb.png" width="361" height="266" border="0" /></a></p>
<p>If you like you can try it out now… If you place breakpoints at the opening brackets of both methods you will see them both hit when opening and closing Blend.</p>
<p>A small thing you might run into when developing extensions is that Blend will lock the extension assemblies when it has them in use. This means you can’t have Visual Studio compile and build you extensions when Blend is running. Even to the point where if you close Blend a process, Microsoft Visual Studio XAML UI Designer (32 bit), will keep the files locked. I have to look a bit more into why and when this process is used. But you often have to go into the process explorer and end the task by hand. If you hit the “stop” button in Visual Studio it will kill Blend most of the time, which unlocks the files. I don’t know if this is a bug or a feature.</p>
<p>I’ll get back to this class in a second. First we should have a look at the…</p>
<h2>User Interface</h2>
<p>An extension needs a user interface, right? The user interface doesn’t do anything with Blend itself or with the extension so I’ll go over it rather quickly.</p>
<p>Because we started with the WPF User Control Library template we already have one. I renamed this to <em>CharacterSelector</em>.</p>
<p>Lets have a look at the XAML part of the UI. It’s basically just a <em>ListBox</em> with some styling. I changed the <em>ItemsPanelTemplate</em> (on line 27) to contain a WrapPanel instead of a StackPanel so all icons will be placed next to each other until a row is full at which point it will wrap to the next row.</p>
<p>The ItemTemplate, defined on line 14, draw a border around a TextBlock that contains the character in the Segoe UI Symbol font.</p>
<p>The whole thing is combined in a ListBox, line 34. The selection changed event is handled in the code behind.</p>
<pre class="brush:[xml]">&lt;UserControl x:Class="SegoeSymbol.CharacterSelector"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="322.667"
             Width="Auto"
             Height="Auto"
             MinWidth="325"&gt;
    &lt;UserControl.Resources&gt;
        &lt;ResourceDictionary&gt;
            &lt;DataTemplate x:Key="ItemTemplate"&gt;
                &lt;Border BorderThickness="1"
                        Width="50"
                        Height="50"
                        BorderBrush="White"&gt;
                    &lt;Grid HorizontalAlignment="Center"
                          VerticalAlignment="Center"&gt;
                        &lt;TextBlock Text="{Binding Character}"
                                   FontFamily="Segoe UI Symbol"
                                   FontSize="24" /&gt;
                    &lt;/Grid&gt;
                &lt;/Border&gt;
            &lt;/DataTemplate&gt;
            &lt;ItemsPanelTemplate x:Key="ItemsPanelTemplate1"&gt;
                &lt;WrapPanel /&gt;
            &lt;/ItemsPanelTemplate&gt;
        &lt;/ResourceDictionary&gt;
    &lt;/UserControl.Resources&gt;

    &lt;Grid&gt;
        &lt;ListBox x:Name="listBox"
                 Background="{x:Null}"
                 ItemTemplate="{DynamicResource ItemTemplate}"
                 ItemsPanel="{DynamicResource ItemsPanelTemplate1}"
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                 ScrollViewer.VerticalScrollBarVisibility="Auto"
                 SelectionChanged="listBox_SelectionChanged" /&gt;
    &lt;/Grid&gt;
&lt;/UserControl&gt;</pre>
<p>In the code behind I fill the selection with characters and handle the selection. The list of characters is created with a simple <em>for </em>loop at line 16. This loop instantiates a helper class <em>MetroIcon</em> (see line 57) and fills it with a number and the corresponding character. After the loop the collection of characters is assigned to the ItemsSource of the ListBox (line 27).</p>
<p>When an element of the ListBox is selected, when the extension is running in Blend, the Listbox_SelectionChanged event handler is called (line 27). To keep things simple, the character selected is copied to the Windows clipboard. As text, but formatted in a way xaml-text can handle it.</p>
<p>Here’s the code:</p>
<pre class="brush:[csharp]">namespace SegoeSymbol
{
    using System.Collections.Generic;
    using System.Windows;
    using System.Windows.Controls;

    /// &lt;summary&gt;
    ///     Interaction logic for CharacterSelector.xaml
    /// &lt;/summary&gt;
    public partial class CharacterSelector : UserControl
    {
        public List&lt;MetroIcon&gt; Collection = new List&lt;MetroIcon&gt;();
        public CharacterSelector()
        {
            Collection = new List&lt;MetroIcon&gt;();
            for (int i = 0xE100; i &lt; 0xE271; i++)
            {

                Collection.Add(new MetroIcon()
                    {
                        Character = ((char)(i)).ToString(),
                        Value = i
                    });
            }

            InitializeComponent();
            listBox.ItemsSource = Collection;
        }

        /// &lt;summary&gt;
        /// Handles the SelectionChanged event of the listBox control.
        /// &lt;/summary&gt;
        /// &lt;param name="sender"&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name="e"&gt;The &lt;see cref="SelectionChangedEventArgs"/&gt; instance 
        /// containing the event data.
        /// &lt;/param&gt;
        private void listBox_SelectionChanged(object sender, 
                                              SelectionChangedEventArgs e)
        {
            if (e.AddedItems != null &amp;&amp; e.AddedItems.Count&gt;0)
            {
                var metroIcon = e.AddedItems[0] as MetroIcon;
                if (metroIcon != null)
                {
                    string val = string.Format("&amp;#x{0:X};", metroIcon.Value);
                    Clipboard.SetData(DataFormats.Text,val);
                }
                listBox.SelectedItem = null;
            }

        }
    }

    /// &lt;summary&gt;
    /// Data class for holding Character and value
    /// &lt;/summary&gt;
    public class MetroIcon
    {
        public string Character { get; set; }
        public int Value { get; set; }
    }
}</pre>
<p>Lets have a look at gluing the whole thing together.</p>
<h2>Adding the control to Blend</h2>
<p>We’re going to make some magic happen in the Load method created earlier in this tutorial. Blend calls the load method and passes it its <em>IServices </em>implementation. You can use this class to get access to various services that Blend exposes. One useful service is the <em>IWindowService</em>. This service is responsible for the panels you see all around Blend. To be able to use the <em>IWindowService</em> interface you need reference <em>Microsoft.Expression.Framework.dll </em>and make sure you set “Copy Local” on false.</p>
<p>To get access to <em>IWindowService</em> you need to call the <em>GetService</em> method on <em>services</em> that was passed as a parameter. When you give this generic method the type <em>IWindowService, </em>it will return an instance of that type that Blend is using.</p>
<p>Next, create an instance of the <em>CharacterSelector</em> control we created in the previous chapter. If you someday need IServices in a user control, just extend the constructor and pass it in.</p>
<p>The last thing to do is register the control as a “Palette”. Palettes are the panels in Blend. To register a new palette call the RegisterPalette method on windowService and give it an identifier, the instance of the control and a title. You can provide a fourth, optional, parameter to set some extended properties on the palette, but we’ll use the defaults for now.</p>
<p>The Load methods should be looking something like this by now:</p>
<pre class="brush:[csharp]">public void Load(IServices services)
{
    IWindowService windowService = services.GetService&lt;IWindowService&gt;();
    CharacterSelector characterSelector = new CharacterSelector();
    windowService.RegisterPalette("SegoeSymbolExtionsion",
                                  characterSelector, 
                                  "SegoeSymbol");
}</pre>
<p>At this point you should be able to hit F5 and find the extension in Blend.</p>
<p>After Blend is started you need to create or open a project. If you look in the Window menu, the palette is shown right there.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML979ba99.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border: 0px;" title="SNAGHTML979ba99" alt="SNAGHTML979ba99" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML979ba99_thumb.png" width="555" height="432" border="0" /></a></p>
<p>When the SegoeSymbol panel is visible it behaves like all other panels in Blend. In this case it is docked next to the Resources panel.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML978ee17.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border: 0px;" title="SNAGHTML978ee17" alt="SNAGHTML978ee17" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTML978ee17_thumb.png" width="598" height="553" border="0" /></a></p>
<h2>What’s next?</h2>
<p>I think we’ve got the basics down at this point. There are a lot more things you can do, like creating menus and commands or using documents and dialogs.</p>
<p>Please note that anything you just read is based on my own findings. There is no documentation available on writing these extension, no support and no guarantee it will even work in a next version of Blend for Visual Studio.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/04/extending-blend-for-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>storyboarding apps in PowerPoint</title>
		<link>http://www.timmykokke.com/2013/04/storyboarding-apps-in-powerpoint/</link>
		<comments>http://www.timmykokke.com/2013/04/storyboarding-apps-in-powerpoint/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 07:01:04 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Windows Phone 8]]></category>
		<category><![CDATA[Windows Store apps]]></category>
		<category><![CDATA[PowerPoint]]></category>
		<category><![CDATA[windows phone 8]]></category>
		<category><![CDATA[windows store apps]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=861</guid>
		<description><![CDATA[I recently gave a workshop about developing and designing Windows Store and Windows Phone applications. A small part of that was about storyboarding applications in Microsoft PowerPoint. The Storyboard extension is available for users of Visual Studio Ultimate, Premium and Test Professional. To view PowerPoint presentations containing these storyboards you don’t need any of those, [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/image.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: left; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" align="left" src="http://www.timmykokke.com/wp-content/uploads/2013/04/image_thumb.png" width="240" height="90" /></a>I recently gave a workshop about developing and designing Windows Store and Windows Phone applications. A small part of that was about storyboarding applications in Microsoft PowerPoint. </p>
<p>The Storyboard extension is available for users of <a href="http://go.microsoft.com/fwlink/?LinkId=246233" target="_blank">Visual Studio Ultimate, Premium and Test Professional</a>. To view PowerPoint presentations containing these storyboards you don’t need any of those, you can even view the presentations in the PowerPoint Web App.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTMLcb1c19c.png"><img title="Storyboard Shapes" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: right; padding-top: 0px; padding-left: 0px; margin: 7px 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Storyboard Shapes" align="right" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTMLcb1c19c_thumb.png" width="405" height="750" /></a></p>
<p>&#160;</p>
<h1>Storyboard Shapes</h1>
<p>If you have Visual Studio installed you’ll probably have the Storyboarding add-in as well. You can find it on the ribbon inside PowerPoint, or you can start PowerPoint Storyboard directly from the start menu.</p>
<p>Once PowerPoint is started it’ll show you the Storyboard shapes panel. This panel contains a whole lot of shapes you can use creating your storyboards or sketches. Not only can this be used for Windows Phone applications, but shapes for Windows Store apps, websites and Windows desktop applications are also included. </p>
<p>The default list of shapes contains most of the common used controls and parts of applications like textboxes and buttons. It also contains more complex controls like maps. </p>
<p>If you need more shapes, or would like to create storyboards for other applications like IPhone apps or just would like a sketchy style, you can download more shapes at the <a href="http://visualstudiogallery.msdn.microsoft.com/site/search?f%5B0%5D.Type=RootCategory&amp;f%5B0%5D.Value=StoryboardShapes&amp;f%5B0%5D.Text=Storyboard%20Shapes" target="_blank">Visual Studio gallery</a>.</p>
<p>&#160;</p>
<h1>Creating a Storyboard</h1>
<p>Creating a storyboard is as easy as creating a regular PowerPoint presentation. Well, maybe even easier. Just drag and drop shapes from the panel to a slide and combine them to get your ideas communicated. </p>
<p>You can use all other PowerPoint features too of course. Shapes, animations, transitions, whatever you like. But, almost everything you need is positioned on the Ribbon. </p>
<p>You may want to reuse the basic layout of your storyboard throughout multiple slide. This is very simple to accomplice. Just click the “Create Layout” button on the Ribbon. You’ll have to name the layout. After you did that you can set any new to use the layout you just created.</p>
<p>You can add custom shapes to the list. If you have added some shapes to form a ‘control’ that you might want to reuse, just select the shapes and click “Add to My Shapes” on the Ribbon. Name the Shape and it is added to the “My Shapes” section of the panel. You can export your custom shapes and share them within your team for example. Imported shapes will be places in a section named after the filename you chose when you exported the file. </p>
<p>Another nice features of the storyboarding add-in is the screenshot function. Clicking the button on the Ribbon will present you the option to grab a screenshot from any running application, in one click. Or to select just a portion of the screen you can click the “Screen clipping” option.</p>
<p>To create some interactivity between parts of your storyboard you can use the Hyperlink option. Besides creating a hyperlink to a file or website, this option can also create a link to another slide. This allows you to build and test the navigation of your application. For example. When building a storyboard for a Windows Phone applications, you can add an AppBar to the design. You can add a hyperlink on each button on the AppBar to have those navigate to different slides. If create a new Layout for this screen you can reuse it on various slides to have a consistent layout with the hustle of recreating it on every slide.</p>
<p>The last option I would like to point out is that you can add a link to your storyboard to Team Foundation Service work items right from within PowerPoint. After hitting the “Storyboard Links” button in the Team section of the Ribbon, you have to connect to you TFS server. When the connection is established you need to search for a work item to link the presentation to. This can be done though a query you defined in you TFS, by id or by name. The only thing notable when using this feature is that you’re storyboard has to be saved in a public location accessible by anyone that needs to view the presentation, a location like SkyDrive or SharePoint. Storyboards can be viewed in the PowerPoint Web app when saved on SkyDrive, without the add-in.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTMLcb247cb1.png"><img title="Storyboarding Ribbon" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 7px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="Storyboarding Ribbon" src="http://www.timmykokke.com/wp-content/uploads/2013/04/SNAGHTMLcb247cb_thumb1.png" width="720" height="110" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/04/storyboarding-apps-in-powerpoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Phone 8 theme colors for Photoshop</title>
		<link>http://www.timmykokke.com/2013/03/windows-phone-8-theme-colors-for-photoshop/</link>
		<comments>http://www.timmykokke.com/2013/03/windows-phone-8-theme-colors-for-photoshop/#comments</comments>
		<pubDate>Tue, 12 Mar 2013 07:35:06 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Windows Phone 8]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[windows phone 8]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=849</guid>
		<description><![CDATA[A while ago I posted a Photoshop color swatch with the accent colors of Windows Phone 7. I’m currently working on the design of a few apps that will be released for Windows Phone 8 too. So I created a new set of colors. You can download the set here: WindowsPhone8Accent.]]></description>
				<content:encoded><![CDATA[<p>A while ago I posted a Photoshop color swatch with the accent colors of Windows Phone 7. I’m currently working on the design of a few apps that will be released for Windows Phone 8 too. So I created a new set of colors.</p>
<p>You can download the set here: <a title="WindowsPhone8Accent" href="http://www.timmykokke.com/wp-content/uploads/2013/03/WindowsPhone8Accent.zip">WindowsPhone8Accent</a>.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/03/image.png"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/03/image_thumb.png" width="232" height="149" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/03/windows-phone-8-theme-colors-for-photoshop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>setting view states in HTML windows store apps using Blend</title>
		<link>http://www.timmykokke.com/2013/02/setting-view-states-in-html-windows-store-apps-using-blend/</link>
		<comments>http://www.timmykokke.com/2013/02/setting-view-states-in-html-windows-store-apps-using-blend/#comments</comments>
		<pubDate>Sun, 17 Feb 2013 22:06:18 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Windows Store apps]]></category>
		<category><![CDATA[Blend for Visual Studio]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[View State]]></category>
		<category><![CDATA[Windows Store app]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=845</guid>
		<description><![CDATA[Intro From developing XAML applications I got used to working with the visual state manager to set various states of my applications and controls. In Windows Store apps that are build using XAML use the visual state manager to change various properties when the view state of the app changes. The app can be ran [...]]]></description>
				<content:encoded><![CDATA[<h1>Intro </h1>
<p>From developing XAML applications I got used to working with the visual state manager to set various states of my applications and controls. In Windows Store apps that are build using XAML use the visual state manager to change various properties when the view state of the app changes. The app can be ran in fullscreen, filled or snapped state. </p>
<p>When building Windows Store apps using HTML and JavaScript I wanted to show some UI different when the view state changes. One way to accomplish this is to change the CSS class of the elements from JavaScript. Just handle the change in view states and call some methods to set the classes. </p>
<p>Another way comes very close to the visual state manager from the XAML world. And can be done from within Blend. </p>
<h1>CSS Media queries</h1>
<p>It turns out you can set the styles for the view states using CSS media queries or <a href="http://www.w3schools.com/css/css_mediatypes.asp" target="_blank">media types</a>. You might know these from building websites, where they’re often used to set different styles for different media or screen sizes. </p>
<p>If you look at the <em>Style Rules</em> pane in Blend for Visual Studio, when having an HTML Windows Store app opened, you can see four different <em>“@media”</em> definitions. Each one is used for a different view states. The media queries are added by default, but if they are missing or you want to add another you can do this by right click on the .css file. </p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image3.png" width="445" height="234"></p>
<p>Notice that only the <em>fullscreen-landscape</em> is white. The other three are greyed out. This is an indication that Blend is showing the landscape orientation at this moment. You can change the current orientation used in Blend on the <em>Device</em> pane. Just select another option for <em>view. </em></p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image4.png" width="300" height="100"></p>
<p>To demonstrate how to use this I created a very simple example showing a grid with 6 boxes. For this I used a <a href="http://msdn.microsoft.com/en-us/library/ie/hh673531(v=vs.85).aspx" target="_blank">FlexBox</a>. When a FlexBox is filled with elements they are stacked horizontally or vertically and wrapping could be enabled. </p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image5.png" width="242" height="149"></p>
<p>html:</p>
<pre>&lt;div class="ms-flexbox"&gt;
    &lt;div class="tile red"&gt;&lt;/div&gt;
    &lt;div class="tile green"&gt;&lt;/div&gt;
    &lt;div class="tile red"&gt;&lt;/div&gt;
    &lt;div class="tile green"&gt;&lt;/div&gt;
    &lt;div class="tile red"&gt;&lt;/div&gt;
    &lt;div class="tile green"&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<p>css:</p>
<pre>.ms-flexbox {
    display: -ms-flexbox;
    -ms-flex-flow: wrap column;
    width: 1000px;
}
.tile {
    width: 250px;
    height: 200px;
    margin: 20px;
}
.tile.red {
    background-color:red;
}
.tile.green {
    background-color:green;
}</pre>
<p>A similar layout like this is often used in Windows Store apps. Unfortunately it does not work when the app is snapped. In the snapped state the elements should be shown in a list, but will remain in three columns at this point. You’ll need to place parts of the .ms-flexbox class in both @media queries. You could do this by hand by editing the .css file, but I’ll show you how to do it using Blend. </p>
<p>The first step is to copy the .ms-flexbox class to the fullscreen-landscape and to the snapped media queries. Just right-click the .ms-flexbox entry on the <em>Style Rules</em> pane and click copy. That paste it on the fullscreen-landscape and the snapped media queries. </p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: left; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" align="left" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image6.png" width="264" height="387"></p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/02/image7.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image_thumb3.png" width="319" height="294"></a></p>
<pre></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Next, select the original .ms-flexbox class and have a look at the <em>CSS Properties</em> pane. There’s a long list of collapsible panels containing a lot of properties. To shorten the list to only the properties that have a value, check the “View set properties only” checkbox.&nbsp; </p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image8.png" width="278" height="136"></p>
<p>The original .ms-flexbox style will be the style that is applied to all view states and contains the properties that are equal in every state. The <em>Flexbox</em> properties will be different. So these need to be removed. To do this click on the small <em>advanced properties</em> square next to <em>Flexbox </em>and select clear.</p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image9.png" width="281" height="337"></p>
<p>Select the .ms-flexbox style on the fullscreen media query on the <em>Style Rules</em> pane. For this part of the style clear the layout and the sizing. And do the same for the style on the snapped media query. </p>
<p>The style for the snapped state has to have some different properties for the Flexbox. Start by setting the <em>View</em> to the snapped state on the <em>Device</em> pane, so it visible what the change in properties is causing. First, clear the <em>–ms-flex-wrap</em> property, because in this state wrapping is not needed. Than, set the <br /><em>–ms-flex-direction</em> property to <em>column</em>. Notice the change in the designer. </p>
<p><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image10.png" width="263" height="196"></p>
<p>And that’s it. Well… Almost actually. We haven’t done anything with the filled and fullscreen-portrait states. You could copy the state from the landscape state, but this would mean you’ll have to keep them in sync in case of changes. </p>
<p>At this point I changed the CSS by hand and added the filled and portrait definition to the landscape view state, which results to:</p>
<pre>@media screen and (-ms-view-state: fullscreen-landscape),
screen and (-ms-view-state: fullscreen-portrait),
screen and (-ms-view-state: filled)
{
    .ms-flexbox {
        -ms-flex-flow: wrap;
    }
}</pre>
<h1>Wrap up</h1>
<p>Handling view states is an important part of you Windows Store app. In a real world application the styles and HTML will be a lot more complex than I showed here, but I hope you’ll get the idea. Otherwise, just drop me a line and I’ll see if I can expand the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/02/setting-view-states-in-html-windows-store-apps-using-blend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>50 design templates for Windows Store apps</title>
		<link>http://www.timmykokke.com/2013/02/50-design-templates-for-windows-store-apps/</link>
		<comments>http://www.timmykokke.com/2013/02/50-design-templates-for-windows-store-apps/#comments</comments>
		<pubDate>Fri, 15 Feb 2013 22:21:35 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Windows Store apps]]></category>
		<category><![CDATA[WinJs]]></category>
		<category><![CDATA[WinRT]]></category>
		<category><![CDATA[windows store apps]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=819</guid>
		<description><![CDATA[I recently tweeted about some upcoming new design templates. At that time these templates were not released yet. Today I stumbled on them again. And it turns out that they are available for free on codeplex. You can see them all here. It’s not recommended to uses these templates as is. They’re provided as Visual [...]]]></description>
				<content:encoded><![CDATA[<p>I recently tweeted about some upcoming new design templates. At that time these templates were not released yet. Today I stumbled <a href="https://www.meetmyapp.in/meetmyapp/windows_8_build.aspx" target="_blank">on them again</a>. And it turns out that they are available for free on codeplex. You can see them all <a href="http://aka.ms/win8templates">here</a>.</p>
<p>It’s not recommended to uses these templates as is. They’re provided as Visual Studio solutions in C# and JS and you should change the design to match your brand, of course.</p>
<p><strong>UPDATE May 9th 2013:</strong><br />
Added 10 more templates to the list.</p>
<p>Here’s the entire list again. Click on the image to go to the template.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="198"> <a href="http://win8templates1.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Block Style Color" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8templates1&amp;DownloadId=616939&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Block Style Color</strong> template will help if you want to build an app which needs a Variable Size Content display blocksThe Block Style Color template contains placeholders for Category and Detail Page. You can leverage this style if your implementation scenario is closest to this template.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template2.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Block Style Picture" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template2&amp;DownloadId=616845&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Block Style Pic</strong> template is an emulation of a data storage app with placeholders for category and details data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template3.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Brick Style" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template3&amp;DownloadId=616874&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Brick Style</strong> template will help if you want to adopt a brick style variable size display in your app&#8217;s hub page.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template4.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Cook Book" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template4&amp;DownloadId=616914&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Cook Book</strong> template will help if you want to build an app which has the following ingredients:</p>
<ul>
<li>Group display</li>
<li>Category display</li>
<li>Recipe detail display</li>
</ul>
<p>Making use of this template you can create any Cookbook app.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template5.codeplex.com/"><img alt="Windows 8 App Design Reference Template: E-Commerce Electronics" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template5&amp;DownloadId=616923&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>E-Commerce Electronic</strong> template will help if you want to build an app which has the following ingredients:</p>
<ol>
<li>Category Display</li>
<li>Group Category Display</li>
<li>Category Detail Display</li>
<li>Detail Display</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template6.codeplex.com/"><img alt="Windows 8 App Design Reference Template: E-Commerce Fashion" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template6&amp;DownloadId=616929&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>E-Commerce Fashion</strong> template will help if you want to build an app which has the following ingredients:</p>
<ol>
<li>Category Display</li>
<li>Group Category Display</li>
<li>Category Detail Display</li>
<li>Detail Display</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template7.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Finance" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template7&amp;DownloadId=617162&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Finance</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Chart &amp; Market Indies Display</li>
<li>Market Indies Display</li>
</ol>
<p>The finance template is an emulation of a Finance app with placeholders for Chart and Market Indies data. Making use of this template you can create any Market Watch app.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template8.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Food and Dining" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template8&amp;DownloadId=617169&amp;Build=20104" /></a></td>
<td valign="top" width="406">The <strong>Food and Dining</strong> template is an emulation of a Recipe app with placeholders for various category of recipe, Ingredients and Instruction.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template9.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Food Light" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template9&amp;DownloadId=617220&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Food Light</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Recipe Details</li>
<li>Restaurant</li>
</ol>
<p>The Food Light template is an emulation of a Recipe app with placeholders for various category of recipe, Ingredients and Instruction.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template10.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Health &amp; Fitness" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template10&amp;DownloadId=617227&amp;Build=20104" /></a></td>
<td valign="top" width="406">The <strong>Health &amp; Fitness</strong> is an emulation of a fitness app with placeholders for Category, Group Category, and Detail data. Making use of this template you can create any fitness app.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template11.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Invitation" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template11&amp;DownloadId=617228&amp;Build=20104" /></a></td>
<td valign="top" width="406">The <strong>Invitation</strong> template is an emulation of an invitation app with placeholders for event category, catalogue, details and review share data. You can also share the created invitation through share source.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template12.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Music" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template12&amp;DownloadId=617229&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Music</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Music Category Display</li>
<li>Playlist Display</li>
<li>Music Player</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template13.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News Dark" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template13&amp;DownloadId=617230&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News Dark</strong> Template is an emulation of a News app with placeholders for News category and News details.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template14.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News Grey" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template14&amp;DownloadId=617231&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News Grey</strong> Template is an emulation of a News app with placeholders for News category and News details.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template15.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News Variable Tile" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template15&amp;DownloadId=617851&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News Variable Tile</strong> Template is an emulation of a News app with placeholders for News category, Group Category and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template16.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Photo Browser" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template16&amp;DownloadId=617844&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Photo Browser</strong> template is an emulation of a Picture browser app with placeholders for Category, Group Category, and Detail Data. Making use of this template you can create a Photo Browser app.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template17.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Shopping" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template17&amp;DownloadId=617853&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Shopping</strong> template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Product Category Display</li>
<li>Product Catalogue Display</li>
<li>Product Details Page</li>
</ol>
<p>The shopping template is an emulation of a shopping app with placeholders for product category, catalogue and details data. Shopping cart and eventual payment features are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template18.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Travel Dark Theme" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template18&amp;DownloadId=617867&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Travel Dark Background</strong> template is an emulation of a travel app with placeholders for Vacation destination, group destination and destination detail data. Add to favourite features are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template19.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Restaurant" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template19&amp;DownloadId=617869&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Restaurant</strong> template is an emulation of a Restaurant app with placeholders for Restaurant category, Restaurant Details. Booking Table and eventual payment features are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template20.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Tutor Advanced" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template20&amp;DownloadId=617872&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Tutor Advanced</strong> Template is an emulation of a tutor app with placeholders for Category, Gallery, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template21.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Tutor" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template21&amp;DownloadId=617877&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Tutor</strong> template is an emulation of a tutor app with placeholders for category, catalogue and details data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template22.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Baby Journal" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template22&amp;DownloadId=617883&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Baby Journal</strong> Template is an emulation of a Baby Journal app with placeholders for Category, Gallery, and Detail data. Making use of this template you can create a Baby Journal app.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template23.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Basic Game" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template23&amp;DownloadId=617887&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Basic Game</strong> template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Game Category Display</li>
<li>Game Catalogue Display</li>
<li>Game Page</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template24.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Blocks" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template24&amp;DownloadId=617890&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Blocks</strong> template provides navigation placeholders in the hub page followed by content blocks in the details page.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template25.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Forum" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template25&amp;DownloadId=617901&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Forum</strong> template will help you build an app which has elements of connecting to various discussion groups.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template26.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Drawing" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template26&amp;DownloadId=617910&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Drawing</strong> template is an emulation of a Painting app with placeholders for Colour selection and Tool Box.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template27.codeplex.com/"><img alt="Windows 8 App Design Reference Template: ECommerce Jewellery" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template27&amp;DownloadId=617913&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>E-Commerce Jewellery</strong> template is an emulation of a Shopping app with placeholders for Category, Group Category, and Detail Data. Making use of this template we can create any Ecommerce app. Shopping Cart functionality is left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template28.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Fitness" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template28&amp;DownloadId=617915&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Fitness</strong> template is an emulation of a health and fitness app with placeholders for Category, Group Category, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template29.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Food Variable" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template29&amp;DownloadId=617917&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Food Variable</strong> template is an emulation of a Recipe app with placeholders for various category of recipe, Ingredients and Instruction.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template30.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Health Management" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template30&amp;DownloadId=617926&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Health Management</strong> template is an emulation of a personal health manager with placeholders for Profile, Reports and Patient details.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template31.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Language Convertor" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template31&amp;DownloadId=617928&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Language Converter</strong> template is an emulation of a Language Translator app with placeholders for Category Selection, Choose Scenario and Translate.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template32.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Lifestyle" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template32&amp;DownloadId=618498&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Lifestyle</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Restaurant Search</li>
<li>Food, Nightlife and Events Search</li>
<li>Today’s Happening</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template33.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Matching" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template33&amp;DownloadId=618500&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Matching</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Choose the Best</li>
<li>Matching Pattern</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template34.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News and Weather" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template34&amp;DownloadId=618505&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News and Weather</strong> template is an emulation of a News app with placeholders for Grouped Items, Weather, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template35.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News Big Image" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template35&amp;DownloadId=618506&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News Big Image</strong> Template is an emulation of a News app with placeholders for News category, Group Category and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template36.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template36&amp;DownloadId=618520&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>News</strong> template is an emulation of a News app with placeholders for News category, article and video data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template37.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Notes" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template37&amp;DownloadId=618523&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Notes</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Calendar Display</li>
<li>Overdue Display</li>
<li>Task Display</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template38.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Pillar Block" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template38&amp;DownloadId=618529&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Pillar Block</strong> template is an emulation of a Pillar Block app with placeholders for category Display (Local News, Local Events etc.), and details.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template39.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Planning Diary" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template39&amp;DownloadId=618531&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Planning Dairy</strong> Template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Schedule Tracking</li>
<li>Schedule Planning</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template40.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Product" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template40&amp;DownloadId=618533&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Product</strong> Template is an emulation of a shopping app with placeholders for Category, Group Category, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template41.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Recipe" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template41&amp;DownloadId=618537&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Recipe</strong> template is an emulation of a Recipe app with placeholders for Recipe List, Recipe details data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template42.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Shoe Store" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template42&amp;DownloadId=618539&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Shoe store</strong> template is an emulation of a Shopping app with placeholders for Category, Group Category, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template43.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Solution" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template43&amp;DownloadId=618541&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Solution</strong> template will help if you want to build an app which has the following ingredients</p>
<ol>
<li>Topics Display</li>
<li>Query Solution Display</li>
<li>Query logging</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template44.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Standard Square" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template44&amp;DownloadId=618544&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Standard Square</strong> template will have a Square tile with placeholders for product category and details data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template45.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Text Keyboard" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template45&amp;DownloadId=618547&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Text Keyboard</strong> template is an emulation of a Keyboard with placeholders for the text keys.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template46.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Tracking" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template46&amp;DownloadId=618550&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Tracking</strong> template is an emulation of tracking apps with placeholders for category and details data. Add, Delete and Refresh are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template47.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Translator" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template47&amp;DownloadId=618554&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Translator</strong> template is an emulation of a translating app with placeholders for translating one language to other. Select language features are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template48.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Travel and Tourism" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template48&amp;DownloadId=618562&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Travel &amp; Tourism</strong> template is an emulation of a travel app with placeholders for Summary, Category, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template49.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Travel Light Theme" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template49&amp;DownloadId=618570&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Travel light theme</strong> is an emulation of a travel app with placeholders for Summary, Group summary, and Detail data.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template50.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Travel Picture" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template50&amp;DownloadId=618572&amp;Build=20104" /></a></td>
<td valign="top" width="406"><strong>Travel picture</strong> template is an emulation of a travel app with placeholders for Vacation destination, group destination and tour detail data. Enquire and Bookmark features are left out of the template intentionally as they are better dealt during actual implementation.</td>
</tr>
<p><!-- 10 more templates --></p>
<tr>
<td valign="top" width="198"> <a href="http://win8template51.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Financial Adviser" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template15&#038;DownloadId=617851&#038;Build=20489" /></a></td>
<td valign="top" width="406"><strong>Financial Adviser</strong>  template will help if you want to build an app to manage personal finances.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template52.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Unit Convertor" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template52&#038;DownloadId=631593&#038;Build=20489" /></a></td>
<td valign="top" width="406"><strong>Unit Convertor</strong> will help if you want to build an app that brings in various conversion logic/units under one roof.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template53.codeplex.com/"><img alt="Windows 8 App Design Reference Template: News Light Theme" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template53&#038;DownloadId=632007&#038;Build=20489" /></a></td>
<td valign="top" width="406"><strong>News Light Theme</strong> will help if you want to build an app which has the following ingredients</p>
<ol>
<li>News Category Display</li>
<li>Article Display </li>
<li>Video Page </li>
</ol>
</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template55.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Food" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template55&#038;DownloadId=632315&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Food</strong> Template is an emulation of a Recipe app with placeholders for different Categories.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template56.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Simple Grid" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template56&#038;DownloadId=653640&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Simple Grid</strong> will help if you want to build an app which has a uniform display of tiles which are proportionate.</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template57.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Variable Grid Style A" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template57&#038;DownloadId=653651&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Variable Grid Style A</strong> Template will help if you want to build an app which has an option for an image followed by uniform display of tiles which are proportionate</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template58.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Variable Grid Style B" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template58&#038;DownloadId=653655&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Variable Grid Style B</strong> Template will help if you want to build an app which has an option for an image followed by uniform display of tiles which are proportionate</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template59.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Variable Grid Style C" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template59&#038;DownloadId=653659&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Variable Grid Style C</strong> Template will help if you want to build an app which has an option for an image followed by uniform display of tiles which are proportionate</td>
</tr>
<tr>
<td valign="top" width="198"> <a href="http://win8template60.codeplex.com/"><img alt="Windows 8 App Design Reference Template: Variable Grid Style D" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=win8template60&#038;DownloadId=655185&#038;Build=20489" /></a></td>
<td valign="top" width="406">The <strong>Variable Grid Style D</strong> Template will help if you want to build an app which has an option for an image followed by uniform display of tiles which are proportionate</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/02/50-design-templates-for-windows-store-apps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Telerik Accelerator Challenge</title>
		<link>http://www.timmykokke.com/2013/02/telerik-accelerator-challenge/</link>
		<comments>http://www.timmykokke.com/2013/02/telerik-accelerator-challenge/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 14:51:26 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Challenge]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Windows Store apps]]></category>
		<category><![CDATA[Telerik]]></category>
		<category><![CDATA[Window Store apps]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=815</guid>
		<description><![CDATA[Just wanted to share this challenge my good friends over at Telerik are holding at the moment. Telerik is looking for awesome Windows Store app ideas. If you are a startup and have a great idea for a Windows 8 app this might be a great opportunity for you. You’ll have to enter your idea [...]]]></description>
				<content:encoded><![CDATA[<p>Just wanted to share this challenge my good friends over at <a href="http://www.telerik.com" target="_blank">Telerik</a> are holding at the moment. <a href="http://www.telerik.com" target="_blank">Telerik</a> is looking for awesome Windows Store app ideas. </p>
<p>If you are a startup and have a great idea for a Windows 8 app this might be a great opportunity for you. You’ll have to enter your idea by March 15. Five teams will than be shortlisted. If you make it to the list, the judges will interview your team in early April. </p>
<p>And if the judges pick your idea, you’ll get<strong> $30K</strong> of funding, a 1 week bootcamp in Hong Kong and 3 months of virtual mentorship. </p>
<p>You can enter <a href="http://www.telerik.com/campaigns/acceleratorwin8.aspx" target="_blank">here</a>.</p>
<p><a href="http://www.telerik.com/campaigns/acceleratorwin8.aspx" target="_blank"><img title="Accelerator_illustration_small" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 7px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="Accelerator_illustration_small" src="http://www.timmykokke.com/wp-content/uploads/2013/02/Accelerator_illustration_small.png" width="395" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/02/telerik-accelerator-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wp7nl utilities Contribution</title>
		<link>http://www.timmykokke.com/2013/02/wp7nl-utilities-contribution/</link>
		<comments>http://www.timmykokke.com/2013/02/wp7nl-utilities-contribution/#comments</comments>
		<pubDate>Fri, 01 Feb 2013 13:18:05 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Windows Phone 8]]></category>
		<category><![CDATA[WP7]]></category>
		<category><![CDATA[wp7nl]]></category>
		<category><![CDATA[windows phone 7]]></category>
		<category><![CDATA[windows phone 8]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=806</guid>
		<description><![CDATA[When building apps for Windows Phone I use my own library. I’m a “lazy” developer and don’t like writing code twice. So I place a lot of code that can be reused, like behaviors, converters and extension methods, in my library. For I while I’ve been thinking about sharing the library as an open source [...]]]></description>
				<content:encoded><![CDATA[<p>When building apps for Windows Phone I use my own library. I’m a “lazy” developer and don’t like writing code twice. So I place a lot of code that can be reused, like behaviors, converters and extension methods, in my library. For I while I’ve been thinking about sharing the library as an open source project on Codeplex, but in the end decided to contribute to the <a href="http://wp7nl.codeplex.com/" target="_blank">Wp7nl Utilities</a> project of Joost van Schaik. The first bunch of utilities are added. I will continue to add more and describe those on my blog too.</p>
<h2>Actions for Launchers</h2>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/02/image.png" target="_blank"><img style="background-image: none; float: right; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="behaviors" alt="behaviors" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image_thumb.png" width="242" height="154" align="right" border="0" /></a>I often have simple trigger actions that need to be executed in my apps. For example, opening a URL in Internet Explorer or sending an email. Because I use Blend a lot (and I’m lazy ;) ), I just like to drag and drop an action to a button or text block and be done with it. The great thing about actions and behaviors is that you can bind the the properties which makes them very useful in templates.</p>
<p>At this point only a few of the possible Windows Phone Launchers are available as trigger actions, but I’m sure the list will grow over time. If you would like one added just let me know and I’ll see what I can do.</p>
<p><a name="NavigateToUrlAction"></a> <strong>NavigateToUrlAction</strong></p>
<p>Using these actions is very simple. The code surrounding the action is pretty much the same for all actions, only the event name might change. The NavigateToUrlAction performs a <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394020(v=vs.105).aspx" target="_blank">WebBrowserTask</a>. It opens up the Url property so you can bind to it. As a small extra feature it checks if a network connection is available and shows a message if there isn’t. This message can be customized as well.</p>
<pre class="brush:[xml]">&lt;Button Content="Wp7nl" HorizontalAlignment="Left" VerticalAlignment="Top"&gt;
    &lt;i:Interaction.Triggers&gt;
        &lt;i:EventTrigger EventName="Tap"&gt;
            &lt;behaviors:NavigateToUrlAction Url="http://wp7nl.codeplex.com"/&gt;
        &lt;/i:EventTrigger&gt;
    &lt;/i:Interaction.Triggers&gt;
&lt;/Button&gt;</pre>
<p><a name="SendEmailAction"></a><strong>SendEmailAction</strong></p>
<p>This action executes the <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394003(v=vs.105).aspx" target="_blank">EmailComposeTask</a>. The &#8220;To&#8221;, &#8220;Subject&#8221; and &#8220;Body&#8221; properties can be bound to.</p>
<p>&nbsp;</p>
<p><a name="NavigatieToMarketplaceDetailAction"></a><strong>NavigatieToMarketplaceDetailAction</strong></p>
<p>This action executes the <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394017(v=vs.105).aspx" target="_blank">MarketPlaceDetailTask</a>. It opens up the marketplace and shows the details of your app.</p>
<p>&nbsp;</p>
<p><a name="NavigatieToReviewAction"></a> <strong>NavigatieToReviewAction</strong></p>
<p>Getting people to review your apps is crucial for a successful app. This action executes the <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394030(v=vs.105).aspx" target="_blank">MarketplaceReviewTask</a> and makes it very easy for users to review.</p>
<p>&nbsp;</p>
<p><a name="ShareLinkAction"></a><strong>ShareLinkAction</strong></p>
<p>Sharing links is a very common task in apps. This action executes the <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394009(v=vs.105).aspx" target="_blank">ShareLinkTask</a>. So you can use the native sharing features of the phone. The &#8220;LinkUri&#8221;, &#8220;Message&#8221; and &#8220;Title&#8221; properties can be bound to.</p>
<p>&nbsp;</p>
<p><a name="LimitTextBoxBehavior"></a><strong>Limit TextBox Behavior</strong></p>
<p>I ran into cases where I wanted to limit the number of characters a user can enter. This behavior an only be used with a TextBox element. You can set the maximum number characters that can be entered in the “MaxChars” property. As a bonus feature you can have the phone vibrate a little when the maximum number of characters is reached.</p>
<pre class="brush:[xml]">&lt;TextBox x:Name="LimitedTextbox"&gt;
    &lt;i:Interaction.Behaviors&gt;
        &lt;behaviors:LimitTextBoxBehavior MaxChars="25" Vibrate="True"/&gt;
    &lt;/i:Interaction.Behaviors&gt;
&lt;/TextBox&gt;</pre>
<p><a name="VisibleOnLocaleBehavior"></a><strong>Visible On Locale Behavior</strong><br />
The VisibleOnLocaleBehavior sets the attached element to visible if the current UI language of the phone matches the specified two letter ISO language name and hides it when it doesn’t. The behavior can be used I you have certain element, like images, that are language specific.</p>
<pre class="brush:[xml]">&lt;TextBlock Text="English" &gt;
    &lt;i:Interaction.Behaviors&gt;
        &lt;behaviors:VisibleOnLocaleBehavior LanguageCode="en"/&gt;
    &lt;/i:Interaction.Behaviors&gt;
&lt;/TextBlock&gt;
&lt;TextBlock Text="Nederlands"&gt;
    &lt;i:Interaction.Behaviors&gt;
        &lt;behaviors:VisibleOnLocaleBehavior LanguageCode="nl"/&gt;
    &lt;/i:Interaction.Behaviors&gt;
&lt;/TextBlock&gt;</pre>
<p><a name="VisibilityInTrialBehavior"></a><strong>Visibility In Trial Behavior</strong><br />
The VisibilityInTrialBehavior sets the attached element to visible or collapsed if the app is in trial mode. Whether the attached element should be visible or collapsed is determined by the “Visibility” property.</p>
<pre class="brush:[xml]">&lt;TextBlock Text="Not in trial mode"&gt;
    &lt;i:Interaction.Behaviors&gt;
        &lt;behaviors:VisibilityInTrialBehavior Visibility="Collapsed"/&gt;
    &lt;/i:Interaction.Behaviors&gt;
&lt;/TextBlock&gt;</pre>
<p>This behavior makes use of the <strong>TrialHelper</strong>. This helper is used to see if your app is running in trial mode. The be able to run your application in trial mode you can add “TRIAL” as a<em> conditional compilation symbol</em> to fake it when debugging.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/02/image1.png"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image_thumb1.png" width="700" height="151" border="0" /></a></p>
<h2>Converters</h2>
<p>I’ve added a couple of converters to the Wp7nl library. Most of which are very simple.</p>
<p><a name="ObjectToStringValueConverter"></a><strong>ObjectToStringValueConverter</strong></p>
<p>Let’s start with the one that needs the most explanation. The ObjectToStringConverter is used to create a nicer representation of an object. Add properties of the bound object between { } to the converter parameters.</p>
<p>Take, for example a Person class.</p>
<pre class="brush:[csharp]">public class Person
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
}</pre>
<p>Whenever you would like to have a textblock show the last name and the first name separated with a comma, you could just add that to the converter parameter.</p>
<p>For this example I’ve set the datacontext of the mainpage to a new instance of the person class directly in the constructor. You wouldn’t do that in a real application of course, but you’ll get the idea.</p>
<pre class="brush:[csharp]">public MainPage()
{
    InitializeComponent();
    DataContext = new Person{FirstName = "Larry", LastName = "Laffer"};
}</pre>
<p>Than I’ve added a databinding to the textblock.</p>
<pre class="brush:[xml]">&lt;TextBlock Text="{Binding ConverterParameter=\{LastName\}\, \{FirstName\}, Converter={StaticResource ObjectToStringValueConverter}}"/&gt;</pre>
<p>When creating the binding in Blend, you don’t have to escape the curly brackets, as shown in the image below.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/02/image2.png"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/02/image_thumb2.png" width="454" height="398" border="0" /></a></p>
<p><a name="NullToCollapsedConverter"></a><strong>NullToCollapsedConverter</strong></p>
<p>Returns Visibility.Collapsed for any value that is null, empty, only whitespaces or an empty guid. Very useful to hide empty stuff. You don’t want to show a navigate to URL button if the URL is empty, for example.</p>
<p>&nbsp;</p>
<p><a name="StripHtmlValueConverter"></a><strong>StripHtmlValueConverter</strong></p>
<p>Removes all HTML from a string and decodes &#8216;&amp;XXXX&#8217; to regular chars. Often when data is requested from external services like Twitter or Facebook, it contains HTML at some point. This HTML has to be converter to either a regular string or to some sort of rich text block. This converter does the first, removing all HTML. &lt;BR /&gt; tags are changed to new lines.</p>
<p>&nbsp;</p>
<p><a name="ToLowerValueConverter"></a><strong>ToLowerValueConverter</strong></p>
<p>Converts a string to all lowercase characters. Useful for headers.</p>
<p>&nbsp;</p>
<p><a name="ToUpperValueConverter"></a><strong>ToUpperValueConverter</strong></p>
<p>Converts a string to all uppercase characters. Useful for titles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/02/wp7nl-utilities-contribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Phone Emulator Hyper-V Error</title>
		<link>http://www.timmykokke.com/2013/01/windows-phone-emulator-hyper-v-error/</link>
		<comments>http://www.timmykokke.com/2013/01/windows-phone-emulator-hyper-v-error/#comments</comments>
		<pubDate>Thu, 24 Jan 2013 19:35:12 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Windows Phone 8]]></category>
		<category><![CDATA[windows phone 8]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=795</guid>
		<description><![CDATA[I recently reinstalled my laptop with Windows 8 and Visual Studio 2012 to be able to develop Windows Phone 8 application on that. I thought every thing was fine until I ran the first application in the emulator. I immediate got an error: “Something happened while creating a switch: Xde couldn’t find an IPv4 address [...]]]></description>
				<content:encoded><![CDATA[<p><img style="background-image: none; float: right; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/01/image2.png" width="378" height="141" align="right" border="0" /></p>
<p>I recently reinstalled my laptop with Windows 8 and Visual Studio 2012 to be able to develop Windows Phone 8 application on that. I thought every thing was fine until I ran the first application in the emulator.</p>
<p>I immediate got an error: “<em>Something happened while creating a switch: Xde couldn’t find an IPv4 address for the host machine</em>.” After some searching I found a solution that worked for me.</p>
<p><img style="background-image: none; float: left; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/01/image3.png" width="154" height="151" align="left" border="0" /> I had to start the Hyper-V Manager, which was on my start menu. I selected the Virtual Switch Manager… from the action menu on the right.</p>
<p>In the Virtual Switch Manager I created a new virtual network switch. I selected “Internal” from the list of types and hit the button. I named the switch “Windows Phone Emulator Internal Switch” and made sure the connection type was set to “Internal Network”. After trying these setting it turned out I had to check “Enable virtual LAN identification…” too.</p>
<p>Below is a screenshot of the setting…</p>
<p>I hope this helps anyone struggling with the same issue.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2013/01/image4.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/01/image_thumb.png" width="244" height="183" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/01/windows-phone-emulator-hyper-v-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Customized Sample data</title>
		<link>http://www.timmykokke.com/2013/01/customized-sample-data/</link>
		<comments>http://www.timmykokke.com/2013/01/customized-sample-data/#comments</comments>
		<pubDate>Tue, 22 Jan 2013 15:35:05 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WinRT]]></category>
		<category><![CDATA[WP7]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[SampleData]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=774</guid>
		<description><![CDATA[Intro When working on Windows Phone or Silverlight applications I use the sample data feature of Blend a lot. I like to see what I’m working on. The only downside of this sample data is that it rarely mirrors the data (unless I’m working on the chair application for a company called Lorem Ipsum). I’d [...]]]></description>
				<content:encoded><![CDATA[<h1>Intro</h1>
<p>When working on Windows Phone or Silverlight applications I use the sample data feature of Blend a lot. I like to <em>see</em> what I’m working on. The only downside of this sample data is that it rarely mirrors the data (unless I’m working on the chair application for a company called Lorem Ipsum). I’d like to see Dutch phone numbers, cities and postal codes. So I’ve decided to create my own list of sample data. At first I thought I had to build a new extension for Blend to be able to customize the data. It turned out to be far less complicated.</p>
<h1><img style="background-image: none; margin: 7px; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/01/image.png" width="270" height="378" align="right" border="0" />How?</h1>
<p>The “String” type of sample data is stored in two files. If you’ve installed Blend on the default location you can find these files at:</p>
<ul>
<li>Blend for Visual Studio ==&gt; C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\SampleDataResources\en\Data</li>
<li>Expression Blend 4 ==&gt; C:\Program Files (x86)\Microsoft Expression\Blend 4\SampleDataResources\en\Data</li>
</ul>
<p>&nbsp;</p>
<p>The first file, <em>LoremIpsum.txt</em>, contains a dummy text. This text is loosely based on Latin an is commonly used as dummy text. The second file,<em> SampleStrings.csv</em>, is a comma delimited file that contains the names and words you are probably used to when working with sample data. All you need to do if you want to create custom data is replacing these files.</p>
<p>Because I’m Dutch and would like to use Dutch dummy text I replaced the contents of the LoremIpsum.txt file with some of the generated text on <a href="http://projects.haykranen.nl/dummytekst/" target="_blank">this</a> page. This immediately makes the random generated text look Dutch.</p>
<p>Replacing the SampleStrings.csv file was a bit more complicated. I assumed the strings had to be in the exact same format as they were, but I was wrong here. You can do whatever you want with this file, as long as the first row of elements are the names of the data you are fine. These names show up in the Format combobox.</p>
<p>Besides the obvious things like first name, last name and addresses, I added a few thing I always needed as sample data but didn’t have. I added image urls and a thumbnails that point to <a href="http://lorempixel.com">http://lorempixel.com</a>. That way I have “real” images when binding the sample data to the source property of an image. I also added dummy tweets. These are just texts but sometimes start with @ or RE, can contain a url or sometimes have a random hash tag.</p>
<h2>Download</h2>
<p>You can find both files in <a href="http://www.timmykokke.com/wp-content/uploads/2013/01/SampleData.zip">SampleData</a>. I also include .bak files of the original files.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2013/01/image1.png" width="648" height="493" border="0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2013/01/customized-sample-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLite for WinRT</title>
		<link>http://www.timmykokke.com/2012/11/sqlite-for-winrt/</link>
		<comments>http://www.timmykokke.com/2012/11/sqlite-for-winrt/#comments</comments>
		<pubDate>Mon, 26 Nov 2012 19:05:20 +0000</pubDate>
		<dc:creator>Timmy</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Windows Store apps]]></category>
		<category><![CDATA[WinRT]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Window Store apps]]></category>

		<guid isPermaLink="false">http://www.timmykokke.com/?p=755</guid>
		<description><![CDATA[Intro Often you need to store some data from the application you are building. One option for Windows Store apps is a local database in the file system, SQLite. It’s pretty easy to setup and to use. SQLite is self-contained serverless database engine and is available for free for many platforms ranging from Linux to [...]]]></description>
				<content:encoded><![CDATA[<h2>Intro</h2>
<p>Often you need to store some data from the application you are building. One option for Windows Store apps is a local database in the file system, SQLite. It’s pretty easy to setup and to use.</p>
<p>SQLite is self-contained serverless database engine and is available for free for many platforms ranging from Linux to Windows. In this small tutorial I’d like to show you how to get started using it in you Windows Store app.</p>
<h2>Bits &amp; Pieces</h2>
<p>First you’ll have to get the database engine. There is a .visx installation package available at <a title="http://www.sqlite.org/download.html" href="http://www.sqlite.org" target="_blank">www.sqlite.org</a>. I downloaded the <a name="winrt"></a><em>Precompiled Binaries for Windows Runtime </em>and installed it. This makes it to show up in Visual Studio when adding a reference in your app under the extension tab.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2012/11/image.png"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px; display: inline; padding-right: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2012/11/image_thumb.png" width="240" height="69" border="0" /></a></p>
<p>To use the binaries you’ll need an open-source wrapper too. The most convenient way to get these is via NuGet. Just do a search for SQLite and install <em>sqlite-net.</em> This NuGet package contains a couple of helper classes and attributes to create and access the database.</p>
<p><a href="http://www.timmykokke.com/wp-content/uploads/2012/11/image1.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="image" alt="image" src="http://www.timmykokke.com/wp-content/uploads/2012/11/image_thumb1.png" width="240" height="140" border="0" /></a></p>
<h2>Code</h2>
<p>To get it to work you have to create the entities in code and decorate it with the right attributes.</p>
<p>This is how two entities might look like:</p>
<pre class="brush:[csharp]">public class Artist
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }

    [MaxLength(64)]
    public string Name { get; set; }
}

public class Album
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }

    [Indexed]
    public int ArtistId { get; set; }

    public string Name { get; set; }
    public int ReleaseYear { get; set; }
}</pre>
<p>Than, you can create and query the database like this:</p>
<pre class="brush:[csharp]">// Set the path in which to store the database.
string dbRootPath =
             Path.Combine(new[]
                          {
                            ApplicationData.Current.LocalFolder.Path, "SqlightTest.sqlite";
                          });

// Create a new connection
var _db = new SQLiteConnection(dbRootPath);

// Create the tables if they not exists
_db.CreateTable&lt;Artist&gt;();
_db.CreateTable&lt;Album&gt;();

// insert a new artist in the database
int key = _db.Insert(new Artist {Name = "The Who"});

// insert some records using the artist key
_db.Insert(new Album {ArtistId = key, Name="My Generation", ReleaseYear = 1965});
_db.Insert(new Album {ArtistId = key, Name="A Quick One", ReleaseYear = 1966});
_db.Insert(new Album {ArtistId = key, Name="The Who Sells Out", ReleaseYear = 1967});
_db.Insert(new Album {ArtistId = key, Name="Tommy", ReleaseYear = 1969});

// query the database using chained methods
var result = _db.Table&lt;Album&gt;().Where(s =&gt; s.Name.StartsWith("T"))
                               .OrderByDescending(x=&gt;x.ReleaseYear);

// or using linq
var result2 = from x in _db.Table&lt;Artist&gt;()
              where x.Name == "The Who"
              select x;</pre>
<h2>Wrap up</h2>
<p>I hope this is enough the get you started using a local database in your Windows Store apps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timmykokke.com/2012/11/sqlite-for-winrt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
