Tag Archive | "c#"

Tags: , , , , , , , , , , , , , , , , , , , ,

Setting up a maintainable windows phone development project in Visual Studio 2008

Posted on 14 October 2009 by Alexander Viken

In this post i share what is my experience, and what i have found to work for me as a best practice for setting up my projects and software structure when developing windows phone applications in Visual Studio 2008.

Basically I am  applying some Model-View-Presenter principles tweaked for simplicity and dividing the different parts into separate projects.

The Model-View-Presenter software design pattern is in my opinion the easiest pattern to use. It is also easy to get going with if you`re not familiar with the jungle of three or four letter acronym patterns and support frameworks available.

Patterns are important and you should use them! By applying, in this case a MVP pattern we can easily handle the rapid changes in new hardware, screen form factors, UX requirements and connectivity requirements to back-end systems. Continue Reading

Comments (2)

Tags: , , , , , , , , , , , , , ,

How to use the MSDN managed code gesture wrapper in a Windows Mobile 6.5 device project

Posted on 02 October 2009 by Alexander Viken

Here´s a short how-to for getting started with gestures in your Windows Mobile applications. First how you set up your device project, and then i explain how it works using the managed gesture wrapper from MSDN.

First of all you need to consider if you would like to do it the “hardcore” way? by doing all the P/Invoke native calls yourself (then this documentation on MSDN is really useful) or if you just want to get gestures working and use the managed wrapper available in the MSDN code library, - You can also find the source code for the  wrapper there if you later need to find out how it really works. I haven´t  investigated the wrapper library yet, so I am not sure if it  encapsulates all the native functionality that is available.

First of all; Start Visual Studio 2008 and create a new device application solution. There is no specific Windows Mobile 6.5 application template so you just choose a Windows Mobile 6 project. Next you need to do is to add a reference to Microsoft.WindowsMobile.Gestures.dll (assuming now that you have downloaded the dll file) in your WYSIWYG in VS08.

  1. Visual Studio 2008 toolboxRight click on the General tab in the toolbox and select “choose items…”
  2. In the “Choose toolbox items” dialog select the browse button in the “.NET Framework Components” tab
  3. Browse to where you extracted the Gestures dll file and select it.
  4. A component called “GestureRecognizer” has it´s checkbox checked and selected.  Click the OK button.
  5. Continue Reading

Comments (0)

Tags: , , , ,

Passed MS 70-536 today

Posted on 07 March 2009 by Alexander Viken

It was disapointingly easy and i left the test center with a score of 911.

70-536 book coverOn a side note; I purchased the MCTS Self-Paced Training Kit from MS Press for .NET Framework 2.0 Application Development Foundation about a year ago on amazon and i’ve never ever read a book with more errors. In my edition pages 700 – 730 is missing.   There’s been a couple new editions but they have the same isbn id so you won’t know which edition to avoid.

The book has no less than 4 long pages with commens and corrections. if needed here is links to Part 1, Part 2, Part 3 and Part 4

Comments (1)

Advertise Here

RSS Mobil hverdag

  • MSDN Live i Norge
    Årets teknologiturne MSDN & TechNet Live, som besøker Stavanger, Trondheim, Bergen og Oslo vil ha med seg en Windows Phone stand. […]
  • Wholesale Applications Community
    Ledende mobiloperatører og telefonfabrikanter har gått nå gått sammen i et felles forsøk på å unngå fragmentering av "AppStore" markedet for mobile applikasjoner. […]
  • WPDC Mars 2010 meetup
    Programmet for det andre Windows Phone Developer Community er klart og vi har gleden av å kunne invitere alle interesserte til en ny fagsamling. […]
  • Windows mobile utviklerforum i Oslo
    Nyetablerte WPDC (Windows Phone Developer Community) hadde sin første samling i begynnelsen av desember 2009, nå er det på tide å tromme sammen til ny samling. […]
Add to Technorati Favorites