Custom Per-Page Transitions for Windows Phone 7

August 17, 2010 23:12 by garrymc

I’ve been looking for a way to create custom transitions for the Apps I’m writing for Windows Phone 7 and came across this informative post and video. Where they describe how to create custom transitions for per page navigation. The only issue is it hasn’t been updated for the Beta release. So I took 10 mins (with the help of ReSharper) to upgrade it to the new Beta, so others don't have to go through the work. I’m not sure if its my machine, but the transitions in the emulator looked a bit sluggish, however I tried them out on a device and they seemed smooth.

FindAZip-CustomTransitions-Beta.zip

kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Performance Optimization on Windows Phone 7

July 28, 2010 22:11 by garrymc

Its been awhile since I put up a blog post and that’s partly due to being so busy working on my two Windows Phone 7 Apps. Which brings me to the topic of this post and one which I think is important for fellow devs to understand. I am one of the lucky few that have received a real device and its very nice! :)  (thanks Microsoft!)

One of the first things I started to do was performance test my App on the device and found that the device is a lot slower than the emulator. So I started to run some optimizations and wrote a small benchmark App to help me work out which refactorings were the fastest. I was rather pleased with myself when I ended up getting improvements of 200 and 300%! in the emulator. Then thought I’d see how much of that new gain transferred to the device. The results shocked the hell out me, as rather than getting a gain I ended up with a lost of 50%! That’s right my optimizations did the exact opposite of what they were supposed to do.More...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ezyTip Review Published

April 22, 2010 15:28 by garrymc

logoMy ezyTip windows mobile application was just reviewed by Best Windows Mobile Apps who are an independent reviewer of Windows Mobile Applications and are a great source to find interesting Apps. They gave ezyTip 4 out of 5 stars and made it the featured App!  The app lost a few points due to some missing features around emailing and uneven splits which is fair. These are features that are planned for the next major version.

I’ve given them 10 free copies of the App to give away (wasn’t dependant on the outcome of the review btw) so if you want a free copy you’d best be quick and leave a comment to be eligible. You can find the review here .

kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ezyTip for Windows Mobile Goes Live!!

March 4, 2010 13:44 by GarryMc

Its been awhile since my last post, and during this time I’ve been working on a Windows Mobile Application for the new Windows Mobile Marketplace. It was an interesting experience, which I think turned out quite well in the end. I thought I’d start with a simple App that wouldn’t take too long, and I considered a number of alternatives. However, Windows Mobile being such a non-standard beast made even simple applications challenging. In the end I settled on a Tip Calculator which sounded very easy to do. Well, this is windows mobile, so nothing is easy to do!!1.6 Aspect Ratio Screen

One of the key issues with Windows Mobile development is that 90%+ of apps still look like they were built back in the 80s. A quick look at the Windows Mobile Marketplace will show that this is unfortunately still true. Though some developers are trying to break this trend and make more modern looking Applications.

So in developing my simple Application I wanted to make it look as good as any application on the iPhone, which is where the challenges really being. Unlike modern mobile platforms, Windows Mobile simply doesn’t make it easy to do modern looking applications. Its hard! which explains why so many Windows Mobile Applications look so bad.

Fortunately I managed to find the open-source project Fluid Controls, which is a framework for building modern looking UIs on Windows Mobile including gesture support on 6.0/6.1 devices. Its a great framework, but hasn’t been updated in over a year, is still in Beta and has only a sample application to work out how to use it; which takes a bit of time. Also, despite how good the framework is, it didn’t support all my needs so I had to modify the framework quite a bit to fill in all the gaps. Having said that if you’re looking to do modern UI dev work for Windows Mobile you should check that project out.1.3 Aspect Ratio

So the other challenge as any Windows Mobile developer will know is supporting the crazy number of screen resolutions. The general practice of moving controls around is fine for the older 80s look. However if you’re using an image as a background that doesn’t quite work. As a result I had to create specific artwork for each aspect ratio. The design that was used was to cut off the left and right sides of the 1:1.3 ratio screen to produce the 1:1.6 screen. In the final product, I had native support for 480x640 and 480x800 which are the two high resolutions for the two aspect ratios I supported. If your device has a resolution which is different but of the same aspect ratio (ie 1:1.3 or 1:1.6), then the Application will automatically rescale all the images to fit the resolution. This works really well for the most part, except for those with 240x400, the scaling features of Windows Mobile are not particularly good and it does a terrible job for this resolution. The solution is to provide native images for this resolution, but you also need to consider the size of the download. The final version comes in at 950K so adding more screens would have put it over a 1 Meg. Though I’ve since discovered there are users who use this resolution so I might add an update with the new resolution.

So it was an enjoyable side project to work on which took considerably longer to do than I expected. However, I think the final result is good and it proves the doing modern applications on Windows Mobile is possible, but not trivial.

In future posts I’ll run through my experience with the new Windows Mobile Marketplace and whether I’ll be doing any new 6.x development.

For those with a Windows Mobile Professional phone, you can check out the App with the link below:

 marketplace

Nb: if you are not in the USA, UK or Canada the above link may not work. If so you need to change your catalog (bottom right of website) to either USA, UK or Canada then do a search for ‘ezytip’.

kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

UnitTestEx v1.2 Released!

August 20, 2009 23:23 by garrymc

I’ve just released an update to the UnitTestEx component which as the following additions:

  • Re-factored API signatures to make them much simpler
  • ExecuteUnitTestScript to support in/out params
  • Renamed ExecuteUnitTestValidationScriptReader to ExecuteUnitTestScriptReader which also now supports in params
  • Added unit test for all database related features ie ExecuteUnitTestScript
  • Added database scripts to allow testing of the new unit tests.
  • Compare now supports the ability to treat empty collections as the same as null collections. This feature can be useful if de-serialize your expected results from an XML file and your actual forces some collections to be null but the default behaviour of the code is to have initialized collections.

For anyone who has been using an older version, this version represents a number of breaking changes. The changes however are not significant and the APIs are now quite stable.

If you haven’t checked out the component yet, take a look at the original post and the code on CodePlex.

kick it on DotNetKicks.com
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5