Impressions of TechEd EMEA 2013

I haven’t updated this blog in a while. I took my time to (hand-) write a cook book for my daughter.

I apologize to my readers and promise to frequently update this blog with new content.

Having said that, last week I was at TechEd EMEA 2013 in Madrid as a staff member at the Windows Phone booth.

Since I am very passionate about Windows Phone it was a great opportunity to talk to people from all over Europe about Windows Phones and some of the features in Windows Phone.


Here is a list of the most frequent asked questions:


– “Why is there no screenshot option on Windows Phone?”

There is. Simultaneously press the power button and the Windows button. The screenshot  will automatically be saved into an album called “Screenshots” in your picture hub.


– “How can I set the phone’s language to my native language?”

Settings > system > language + region

You can pick the language, the region, the regional format for date and the Browser & search language. In order to apply those changes you have to restart your phone.


– “How do I know which version of Windows Phone I have?”

Settings > About > More info


– “Why do I get the error message ‘Attention required. Tap here’ when I try to download an app?

Your phone might have temporarily lost its Internet connection, or you might be trying to download an app that’s too big to download over your phone’s cellular data connection. If you’re trying to download an app larger than 50 MB you need to connect to a Wifi network, or  connect the phone to your computer and use the Zune software (only in case of Windows Phone 7.x devices).


– “When I set up my phone I skipped the Windows Live ID sign-in. How can I do that now?”

You will be prompted for Windows Live ID sign in the next time you perform a Windows Phone activity that requires Windows Live ID sign in, such as downloading apps or buying music and videos from Marketplace, or playing Xbox LIVE games.
From this prompt, tap sign in to sign in with an existing Windows Live ID or create a new one.


– “How can I change my Windows Live ID?”

In order to change the Windows Live ID used to access features like Marketplace you need to reset your phone. This will erase will erase all your personal content, including apps that you purchased and downloaded, and will restore the factory settings. You may not be able to transfer purchased content to a different Windows Live ID.

Other email accounts, including additional Windows Live accounts, can be removed or added without resetting your phone.


– “I have multiple Windows Live IDs. I forgot which one I used when I set up my phone. How can I find out?”

Settings > Email & Accounts

The first Email address listed is the one you signed in to Windows Phone.


– “Which one is your favourite Windows Phone device?”

First of all there are no ‘bad’ Windows Phones. Even so called low end devices like the Nokia Lumia 520 or the HTC 8S are smooth running Windows Phones with all features. You even can expand the 8 GB storage with a Micro SD storage card. The only thing that you don’t have with these Phones is NFC and a front face camera. If you are looking for a first phone for your child, those devices are a great choice.

I myself have my heart set on two Windows Phones:

The Nokia Lumia 925: This is the Ferrari amongst the Windows Phones. It has it all: NFC, 8.7 MP back camera, 1.2 MP front camera, 16 GB storage (not expandable), a CPU speed of 1.5 GHz, 1 GB RAM and with a beautiful 4.5” screen just like the Nokia Lumia 920. It is thinner than the 920 though and looks very elegant.

However, for my small hands that would be a little too big. I never really was a Ferrari kind of person, always have been an Audi person. That’s why my real favourite is the Nokia Lumia 720: The specs are: NFC, 6.7 MP back camera, 1.3 MP front camera, 8 GB storage (expandable with Micro SD card), CPU 1.0 GHz, 512 MB RAM and a 4.3” screen.


These were some of the most frequent asked questions at TechEd last week. I enjoyed talking to people and sharing my passion about Windows Phone with people from all over Europe.

I am looking forward to TechEd next year and I hope I can be part of it again.


To be continued…


Hello, World, Again!

Welcome to my new blog.

Many of my readers already followed my blog on Unfortunately in the last few weeks that site was unreachable, so I decided to move that blog.

I started with rewriting all previous post, before there will be new content.

When I started that blog I didn’t know anything about let’s say computer – related stuff. I didn’t know C#, I didn’t know Silverlight, I did not even know how to properly set up a blog. In other words: I knew nothing.

So I picked the first suggestion for a blog that I could find. And to be honest, I did like the fact, that it said “”. I found that kind of appropriate.

There were people telling me, that I picked the wrong site for my blog, but since I wanted to do that all on my own (that blog was my baby) I did not listen to them.

Well, I better should have! Because my blog has been down so many times. I could not reach it, I could not update it… Nothing! Alone in the last 4 weeks, I was able to reach it once, and today.

So I decided to move my blog. Every entry I made there, will be here as well. And soon there will be new content.

To be continued…

The VibrateController Class

I am currently working on another Windows Phone Application, where I needed a way to show the user that they had successfully performed a task and therefore unlocked another feature inside the application.

First idea was adding some sound, but somehow I was not happy with that. So I thought, why not let the phone vibrate?

It’s actually not that hard. The Windows Phone 7 SDK allows me to control the vibrate function easily.

In the namespace Microsoft.Devices there is a class defined with the name ‘VibrateController’.

The only code I need for that function is:

When the user clicks the particular button, the phone vibrates.

A few thoughts to keep in mind:

1. the shortest vibration / pause is 0.1 seconds.

2. the longest is 5 seconds, but that is not recommended.

3. 3 vibrations in one sequence are enough.

4. 0.2 / 0.3 are good choices for an alert.


Here you can find more information about the VibrateController Class.


To be continued…

Creating an Alarm Application

I don’t have a kitchen timer, but who cares? I have a Windows Phone, right? So I just created a little Alarm application to compensate for missing kitchen equipment.

It is a very simple application that has a TextBlock (for instructions), a TextBox, where I can set the alarm (I chose to set that in seconds), and two buttons. One for setting the alarm, the other one for resetting it:

By clicking the ‘Set Alarm’ Button I set the alarm. A method called ‘CreateAlarm’ will be created. This method will create the instance of the alarm by passing a name to the constructor. I am also going to add a little alarm message:

“ScheduledActionService.Add(alarm)” will let the alarm go off when the application has been closed. It will execute in the background.

Works as expected. I just have to make sure to press the ‘Reset Alarm’ Button after an alarm went off, to prevent it from crashing. I am sure there is room for improvement, but for now, I am happy with that.


To be continued…


Add Ads to your App

Why ads to begin with?

I have a few apps in the Marketplace that can be purchased. The average end user though is not going to purchase anything that they haven’t tested. Therefore it makes sense to have a trial version of the app. The trial version usually has some limitations. Either you limit the functionality of the app, or, like I am doing in my apps, the trial version is ad-driven.

To add ads to your Windows Phone App you just need to follow a few steps.

1. Make sure you have the latest tools. You can find them here.

Although that ships with the Advertising SDK, it is recommended to download the latest version of the Advertising SDK as well.

2. Add a Reference:

Since I am developing my apps in Silverlight, this is the one I need.

3. In the root element of my XAML file I need to add this:

In the Layout root of my XAML file I create my AdControl:

Of all the properties of the AdControl, ApplicationId and AdUnitId are the most critical. The example uses special values intended for testing. Let’s see how that looks:

Even though the SDK lists several different sizes for supported ads, only two have test images, that you specify through the AdUnitId property. For a 480×80 image, I use Image480_80 and for a 300×50 image, I use Image300_50. For a Windows Phone application it is recommended to use a 480×80 image.

One more property that is important to know is the RotationEnabled property, which by default is set to true. This means that a new ad will periodically and automatically be shown.

4. Get ApplicationId and AdUnitId at the Microsoft Advertising pubCenter. For every application you have ads for, you need to get an application ID. Each application can have multiple ad Units. If you are visiting the pubCenter for the first time, click the ‘Get Started’ button, otherwise sign in.

At the top there are two rows of tabs. First click the ‘Setup’ tab in the first row, and then ‘Sites and Apps’ in the second row. Click ‘Create a new application’:

Now you need to specify a name for your application. With clicking “add”, the Application ID will be assigned.

Once you have that, you can click on ‘Ad Units’ in the second tabs row. Click on ‘Create a new Application Ad Unit’. Now you need to select up to three categories per Ad Unit. This specifies the kinds of ads you want to be shown in your application

5. Now you need to set the assigned values to the ApplicationId and AdUnitId properties of your AdControl.

In order to get real ads, you need to set the static TestMode property to false in the constructor:

Here you can find more information.


To be continued…




ScrollViewer not scrollable?

I am currently working on yet another application. In that application I have two pages, the MainPage where I can choose a certain phrase. Choosing one of them navigates me to my second page, where I have three TextBlocks. The length of the text varies, depending on the phrase I chose in the first page.

No problem, I thought. I’ll just put my TextBlocks in a StackPanel, And I nicely can put a ScrollViewer around the TextBlocks:

Well, what sounded nice in theory did not work out. When I ran the application, I could see there is a ScrollViewer, but somehow it just bounced back to the start point whenever I tried to scroll.

The solution was quite easy in the end. I replaced the StackPanel with a Grid:

Now I can scroll in the two TextBlocks that I need.


To be continued…

Addition: Yesterday I got this comment on this blog post:

“You limited the textbox height, but you wanted to limit the view of it.

So you could also set the height on the scrollviewer, and remove it (so it will be auto) on the textblocks. Let’s you still use the stackpanel. :)



So I tried that. And although I was happy with the solution I came up with, I like this solution as well. It just works:

Thank you @David_TK.


To be continued…



Visual Studio vs Expression Blend: Adding an Application Bar

Many applications have an AppBar. The ApplicationBar on Windows Phone is the equivalent of a menu bar and / or toolbar for desktop applications. It can include IconButtons and MenuItems.

The namespace Microsoft.Phone.Shell defines the AppBar.

I’ll get started right away with a new project in Visual Studio.

All I want to do is add an AppBar with four icon buttons and seven menu items. There are a few steps that I need to take:

1. Create a folder (I usually call that folder “Images”) in my solution that is going to hold my icons.

2.Get the icons I need the folder:

Windows Explorer – OS(C:) – Program Files – Microsoft SDKs – Windows Phone – v7.1 – Icons – dark

On a 64 bit OS the icons are in the folder:

Windows Explorer – OS(C:) – Program Files (x86) – Microsoft SDKs – Windows Phone – v7.1 – Icons – dark

I select the icons and drag them into my created Images folder.

3. In the solution explorer I set the Build Action for all four of them to “Content”.

4. Reference them in my ApplicationBar.

Visual Studio creates an AppBar by default. It is commented out.

I uncomment it and change the references:

That created a nice ApplicationBar with four icon buttons and a few menu items in my project:



With Expression Blend I don’t have to do all this, because of the better UX (User eXperience) when creating an ApplicationBar.

In the ‘Object and Timeline’ panel right-click the ‘PhoneApplicationPage’ and click “Add ApplicationBar”.

That already created the ApplicationBar. Now I only need to add the icon buttons and the menu items. I right-click on the ApplicationBar to add ApplicationBarIconButton and ApplicationBarMenuItem.

After adding the IconButtons and the MenuItems I can add my images for the buttons and change the text property’. I can do that in the ‘Property’ panel under ‘Common Properties’ with the IconButton or MenuItem selected in the ‘Object and Timeline’ panel:

Clicking that little arrow opens a drop-down list where I can select the icon I want. I do that for all four buttons.

To wrap it up: The ApplicationBar can have up to four IconButtons and as many MenuItems as I like. That is true for both Visual Studio and Expression Blend.

No matter where I create my AppBar, in Visual Studio or Expression Blend, the end result is the same. It looks easier to create an ApplicationBar in ExpressionBlend. But in the end it comes down to personal taste.


To be continued…

%d bloggers like this: