Posts tonen met het label Windows 8. Alle posts tonen
Posts tonen met het label Windows 8. Alle posts tonen

maandag 23 april 2012

Clean windows 8 metro project



Last week I attended a Windows 8 session at MIC.  While everyone was working on the labs I was trying to set up my project structure for my own metro project.  When I created a new Windows 8 metro project it struck me that the project template is just a PIA to start a new project with. 

The project starts up with a whole lot of redundant imports of namespaces and you get a free “default viewmodel” of which I can see no real world usage.  And the best thing of all is that all the item templates hook into this horrible standard project template by providing test data which plugs into this default viewmodel…

I’ve cleaned up the standard project template by releasing resharper on it and doing a code cleanup.  The default viewmodel has also been removed… I don’t think anyone will feel a big loss there.  You can download the new windows 8 project template here.

To be able to use that project template you have to place it in your project templates folder.  You can find this folder by going into the options menu in Visual Studio. Under the ‘General’ settings located under ‘Project and Solutions’  you can find the ‘User project templates location’ setting.



A small caution is that most of the default item templates won't build when the default viewmodel is removed but I consider this a good thing as you’ll probably don’t want that code anyway ;-)


dinsdag 20 september 2011

No Silverlight for your Metro browser

I’ve just read that IE10 metro won’t support the Silverlight plugin anymore (1,2).  The reasons behind this decision are that they want to make the browser less resource extensive.  Microsoft appears to be aiming for an entire HTML5 supporting browser.  They say that the plugins drain too much battery life with their updates and that they’re not always that secure.

IE10 will come in two flavors with one core, so you’re not completely lost.  The desktop version of IE10 will support plugins.

I think it’s a bit of a mistake that Microsoft won’t allow plugins in the metro version.  It would provide them with the edge they need over other vendors that don’t support Flash and Silverlight.  Though it seems that together with Windows 8, they’re looking to make the whole metro experience as smooth as possible and are eliminating as many risks as possible.

Switching from Metro mode to desktop mode appears to be very easy , if we believe the Building Windows8 blog:
On Windows 8, consumer sites and “line of business” applications that require legacy ActiveX controls will continue to run in the desktop browser, and people can tap “Use Desktop View” in Metro style IE for these sites. For what these sites do, the power of HTML5 makes more sense, especially in Windows 8 apps.
It appears Microsoft is really discouraging developers from using plugins in their website. With allot of big players jumping on the HTML5 bandwagon the clock seems to be ticking for browser plugins…