I'll be speaking at (2012)

I'll be speaking at (2011)

Yada yada

Welcome!

I'm a Swedish consultant focusing on ASP.NET and all things XAML (Metro style apps, Silverlight etc). Hope you enjoy your stay :)

RSS feed
4/27/2012
The demo works against the Northwind database using Entity Framework’s code first approach. The data is then exposed through the ASP.NET Web API and consumed from the client. The client then persists the results to roaming storage and “integrates” it into Windows 8 by implementing the Search contract.

More...

RSS feed
4/27/2012
Demonstrates how to work with the new list controls in Windows 8 Metro style apps (GridView, ListView, FlipView and SemanticZoom).

More...

RSS feed

10 tips on porting Silverlight apps to WinRT/Metro (Part 2)

3/18/2012

Still porting that game (now using Windows 8 Consumer Preview). Here’s another round of tips for porting Silverlight apps to Windows 8 metro.

  1. There are several predefined animations have been included to make it easier to animate stuff in the look and feel of Windows 8
  2. WinRT does not provide any built in pixel shaders available (such as BlurEffect or DropShadowEffect)
  3. The syntax for specifying resource paths has changed to reflect the new Appx deployment system. Here's an example of how to reference an image (with build action set to "Content"): ms-appx:/MyAppName/Images/MyImage.png
  4. Text rendering is a lot better in Consumer Preview, still not quite as crisp as in HTML though
  5. By adopting the metro design language, it's A LOT easier to make your app look good without having to buy your own snowboard (i.e. learn design)
  6. If you let those Windows 8 Charms work for you, you can toss a lot of UI elements and focus on your content instead, no more search boxes or "share-to's"!
  7. WinRT's interaction API makes coding for mouse/pen/touch a no-brainer
  8. While XNA isn't available, DirectX is - but you will need to brush up on your C++ skills to use it in any meaningful way :(
  9. The fact that apps always run in full screen mode does make debugging and tracing feel a bit sluggish - oh, and Fiddler is a great substitute for the F12 Developer Tools/Firebug
  10. Contrary to WP7 development, WinRT's AppBar give you full control over its content, and there are a lot of predefined icons available

Hope this helps :)


RSS feed
3/17/2012
This year I'll be doing two sessions on Windows 8. One on the new List controls available in XAML, one called "File->new Win8 Project", covering how to create Windows 8 Metro applications from scratch. Should be great fun :)

More...

RSS feed
3/17/2012
Demonstrates how to setup and consume an ASP.NET Web API using jQuery.

More...

RSS feed
3/17/2012
Demonstrates how to use the bundling and minification techniques of ASP.NET MVC 4.

More...

RSS feed
11/16/2011
Demonstrates how to work with validation in ASP.NET MVC. Includes the usage of custom data annotation attributes for both client and server-side use. The demo also covers class-level validation.

More...

RSS feed
11/16/2011
Demonstrates how to work with localization in ASP.NET MVC applications.

More...

RSS feed
11/16/2011
Demonstrates how to work with jQuery-based AJAX communication in ASP.NET MVC applications.

More...

RSS feed

10 tips on porting Silverlight apps to WinRT/Metro (Part 1)

11/12/2011

So I got this rather ambitious Silverlight game that I’ve been working on for ages. It’s one of these fun little spare time projects that you sometimes find yourself working really hard at, and sometime doesn’t open for a year or so.

Being really jazzed about WinRT/metro style apps, I thought I might as well jump right into it with a port of my game. Here follows some of my impressions after the a few days spent on porting.

  1. Lots of BCL classes missing from metro style apps (most notably serialization specific stuff)
  2. A (much to) short list from MS describing what types are missing and how to substitute them can be found here.
  3. Even though you won't be downloading assemblies on demand anymore, note that MEF is still around (sweet)
  4. While VS2011 currently only supports metro style apps development, you can install VS2010 side by side
  5. You can actually add references to assemblies built for the full .NET profile. Probably won't pass certification though…
  6. Even though the templates doesn't use it (!?!) - the navigation framework is still around (and is still the preferred way of doing it)
  7. You can still embed custom fonts
  8. Text rendering is still hopelessly blurry. Compare a vanilla XAML app with a HTML app - HUGE difference :(
  9. The async/await keywords make WinRT's heavy use of the async model a no brainer - beautiful!
  10. Not having to worry as much about the size of your assemblies feels PRETTY GOOD :)

Porting my app from Silverlight to WinRT has been easier than I expected so far. I’ll post more impressions as soon as I get to spend some more time on this project.


Twitter
  • PonTwitt: @hcanber Tackar & bockar :)
  • PonTwitt: RT @nzigel: @SharkyNZ check MonoGame (SharpDx version) XNA like library for WinRT #win8 #metro #xna #xblig #csharp
  • PonTwitt: @OcellApp Lookin' forward to it :)
  • PonTwitt: Great article on Windows 8 UI decisions, both desktop & metro. http://t.co/6FpZvM1s #win8 #metro
  • PonTwitt: @hcanber Önskar ja kunde hakat - sick as a dawg :/
  • PonTwitt: RT @DanWahlin: RT @timheuer: C# developer and want to access SQLite in your Metro app? Use this library https://t.co/Y0OCDGno #winrt #xaml
  • PonTwitt: RT @edrabbit: Why is Facebook going public? They couldn't figure out the privacy settings either.
  • PonTwitt: RT @timheuer Variable sized group items in GridView http://t.co/N09IcnB8 from Mark on my team #windows8 #winrt #xaml
  • PonTwitt: RT @MrBuskis: Jag får känslan av att vi alla tycker att vi gör allt så rätt, att det måste vara verkligheten som har gjort bort sig.
  • PonTwitt: Filmade lite från en maskerad i tisdags, hör av er om ni e intresserade av maskeringstejpen. #ouch