Archive for the ‘Windows 8’ Category

Windows 8.1 OutOfMemoryException when rendering Bitmaps

February 8, 2014 Leave a comment

Recently, I have been faced to a strange issue in one of our application.
That application has been validated to work on bigger screen size, and we notice at that time that bitmaps graphics was badly render on such big screen mainly due to different pixel size.

To solve that bad rendering of such bitmap on such screen size, we had to use the BitmapScalingMode property of an Image control.

<Image RenderOptions.BitmapScalingMode=”HighQuality” Source=”/Resources/key.png” Width=”40″ Height=”40″ Stretch=”Fill” VerticalAlignment=”Center”/>

Has shown is sample code above, setting the property to HighQuality value was rendering the image nicely on bigger screen. So far so good then.

Next steps was to test the application on this same type of screen but under Windows 8, working perfectly well as well until the time it has been updated to Windows 8.1 and get our application crash with an OutOfMemoryException.

After days of testing we have identify that it was occurring when used image was about 8 bits and 256 colors. This has been reported as a bug by Microsoft on Windows 8.1 update.

Different possible Work around:

  1. With your prefer      graphic tool generate a files from your image with more depth
  2. If you have no      control of the image you have and want to still use it you card converted      from code by the following code snippets

    BitmapSource ResizeImage(BitmapSource image, int width, int height)
    var      bmp = new FormatConvertedBitmap(image, PixelFormats.Bgr24, null, 0);
    return      new TransformedBitmap(bmp, new      ScaleTransform((double)width/bmp.PixelWidth,      (double)height/bmp.PixelHeight));

Hope this will save you some times 🙂

Categories: Windows 8, WPF Tags:

Approach to Windows 8.1 development factors

December 23, 2013 Leave a comment

So long that I did not have time to post a new thing, this essentially due to a lot of business which was taking most of my time. Xmas holidays gives me the opportunity to write the following article on some experience approach I met by building a Windows 8 applications. What will follow are not all about Windows 8 development but basic key point of mine to approach safely a project.

Like any others when you want to learn for a new technologies or concept you are looking for free course provided not only by pro’s but also from professional people who succeed different real projects.

As a new comer on Windows 8.1 development due to some raising customer project, I was actually looking from different starting point on the technology and approaches. What was essential for me was to go to the right place and avoid a kind of step by step starting from the famous “Hello word”.

Reducing the learning curve is the key

My expertise is on C# and XAML by building different business application in a collaborative manner. So my main objective was to minimized the famous learning curve that all of us gets scared about when you have something real to produce. What I mean by something real to produce is not a simple project just to have fun and then say at the end “Yeah I got it”, but instead a business app that my customer is expecting on time and where he can measure his ROI based on given specification and objective, then you will finally able to say: “Yeah my customer is happy”. Taken from that last point of view, the learning phase approach is completely different and the only thing you need to know is essentially where you are going by following some of my rules:

  • You know already a language ? if it suite your app, stick with it. If it is not, do whatever it is possible in order that I will fit your app
  • Think of your application in a way that “what will it bring to my customer ?” instead of “what feature should I add ?
  • 1 Application + One customer goal = A unique app
  • Identify as early as possible your application target ( Mobile or Dektop or Both)
  • Plan your application architecture based on your target and app evolution
  • Identify if your app should be Public or more Line of Business App (LOB)
  • In case of business app ( use of SideLoading) , think carefully how you will sell your app and give it accessibility for download as it will be an external link from the Windows Store.


Line of business app :

Apps Certification :

Hands on Windows 8 development :

Application user interface and interaction : More important than ever


I am personally coming from a deep experience of application interaction and design in the Microsoft PixelSense world. I was in charge of building collaborative application and considering how you will bring your application content to your users. More than an important objective but a MUST to make your application unique and have your users being free to explore what you will provide by content. With Windows 8, that approach of user interface and design is even more important because you need to cover different type of devices resolution today as mobile screen are coming bigger, as well as taking care of devices sensor and present content correctly based on devices orientation.

Before anything the good thing is to go through the Windows 8 Design Guide Lines in order to understand why they are so important. We have seen so many poor apps running in the store which are pure adjustment of an existing web site without a real thinking of the user interaction.

Never forget that an application is appreciated by your users within the first 30 seconds

You have different solution available for that :

  • Microsoft Blend for your SketchFlow ( can be time consuming if not used to )
  • Microsoft Expression for your graphic design
  • Microsoft Power-Point can be a nice and well known tool to elaborate design
  • One bloc of paper and a Pen (Easier and faster solution)

During my all experience as developer and design interaction, I always come out with a basic sentence in mind who has confirmed all my successful deployments :


You can have in hands the best tool ever, thinking for simple  solution will help you a lot.

Categories: Windows 8

Windows 8.1 Reveal at Build 2013

June 27, 2013 Leave a comment

That is done. Build 2013 start on June 26 and Steve Balmer reveal the new Windows 8.1 preview version that will suppose to like. A lot of things has change and improved based on customer and developper feedback on previous version.

Microsoft formally unveiled Windows 8.1 to developers on Wednesday, with executives promising a “rapid release” schedule to keep the pace of new innovations coming.

For those who have read PCWorld’s hands-on of the Windows 8.1 preview, Microsoft’s announcements were nothing new. Executives confirmed the reworking of the Start menu, new boot-to-Desktop options, as well as a slew of updated apps that take advantage of Windows 8.1, which can be downloaded in preview form from

For Microsoft, the Build 2013 developer conference represents a chance to connect or reconnect with developers, luring them back to the Windows platform. Although Microsoft is nearing 100,000 Windows 8 apps, that still falls well short of the millions of apps that have been written for the Apple iOS and Google Android platforms.

See full article for more information

Categories: Uncategorized, Windows 8, WinRT

MVVM pattern under Windows 8 – WinRT

May 20, 2013 Leave a comment

For those like me who like to get a flexible code and easy maintenable possibilities as well as flexibilities, since I discover and implement the MVVM pattern with WPF, I can say that I could not leave without it.
Before going to that pattern I have test different approach like Prism, MVVM ToolKit and other open source project. Based on my test result and personnal needs, my choice goes to MVVM tool Light toolkit. Why? simply because of its name ” Light” . Prism so far was a too heavy package based on what I was using.

What is cool is that the MVVM Light tool kit is nicely maintenain by Laurent Bugnion and get an update version for Windows 8 actually.

Those post below describe the MVVM pattern under Windows 8 and WinRT. Nice articles to step in and discover some interresting points covered:

Using the MVVM Pattern in Windows 8
Prism for Windows Runtime

Happy reading!

Surface Getting Started Guide

February 13, 2013 Leave a comment

You have decided to go with Surface RT or Surface Pro and as all of us the first time, the same question is raised. How can I do that ? what is the difference between Pro and RT version ?

Or you are simply willing to go for Surface but still have some doubt on which device can do what and what is best for your needs

In order to help you getting started and help you discover those new devices, Microsoft is providing a small interesting guide that I am sure it will be your friend for a while either if you are already a user or a potential user.

Download the Surface Getting Started Guide

Get your Windows Store application certified quickly

November 20, 2012 Leave a comment

First the time I start to explore the windows store and all books and article around, gettings started section is the famous part where  all of us usually start from.

But then nothing much on good rules in order to get your app certified.

I discover a nice article on this topic. Please refer to the following blog post if you are still wondering:



Categories: Windows 8 Tags: ,

How Surface will come to you

October 16, 2012 1 comment

Surface is coming soon. Officially annouce ofr the 26th of October 2012. We are all impatient to get one and play with it, buidl great app with it, and more..
But before that ddo you have any idea of the long path before it comes to your door ?

Here is a nice article to gives you more need :

Categories: Uncategorized, Windows 8 Tags: ,