Tag: Windows Phone

The year 2012 was for me a year that went way to fast. In the year 2012 I learned a lot new stuff, wrote several blog posts and read lots of blog posts and articles. First of all I want you to give a list of all blog posts I wrote this year. You can find the complete list here http://marcofranssen.nl/2012/ and here http://marcofranssen.nl/2012/page/2/.
JavaScript
http://marcofranssen.nl/writing-modular-javascript-without-polluting-the-global-namespace/
http://marcofranssen.nl/knockout-js-mappings/
Windows 8
http://marcofranssen.nl/install-windows-8-consumer-preview-on-vhd/
http://marcofranssen.nl/install-windows-8-from-rusty-256-mb-usb-stick/
Windows Phone
http://marcofranssen.nl/minesweeper-7/
http://marcofranssen.nl/shortify-for-windows-phone-7/
http://marcofranssen.nl/sokoban-7/
http://marcofranssen.nl/windows-phone-theme-colors/
ASP.NET MVC
http://marcofranssen.nl/secure-your-web-app-fluently/
.NET C#
http://marcofranssen.nl/delegate-your-equality-comparisons/
Powershell
http://marcofranssen.nl/unblock-downloaded-files-with-powershell/
I even wrote a non-technical article
http://marcofranssen.nl/pitching-equals-invisible-convincing/
Second I want to share my starred articles from my reading archive. I used pocket to bookmark, read and archive my articles, which enables me now to share all starred articles with you.

When developing Windows Phone apps I love to use the theme accent colors in my apps. Since there are some new theme colors in Windows Phone 8 I started searching for their color codes. Lucky me I found them on msdn.aspx#BKMK_Implementation “Theme for Windows Phone”).
Now you may be thinking how to use the colors in your own Windows Phone apps. The Color object doesn’t contain a color called Emerald. So I created a small class to help me out with this issue. First of all I created a small static helper method to convert the hexa colors to a color object. So we are able to put in the hexa color string and the function returns a color for us.
123456789public static Color FromHexa(string hexaColor){ return Color.FromArgb( Convert.ToByte(hexaColor.Substring(1, 2), 16), Convert.ToByte(hexaColor.Substring(3, 2), 16), Convert.ToByte(hexaColor.Substring(5, 2), 16), Convert.ToByte(hexaColor.Substring(7, 2), 16) );}
Then I made some properties that caches the colors for us on their first use. The Color properties looks like this.