8 Must-Have Tools for Windows Phone 7 Development
Join the DZone community and get the full member experience.Join For Free
with silverlight spy you can run your windows phone 7 application and make design/layout changes in real-time and see those changes before your very eyes. combine this with the metro grid helper class from jeff wilcox so that you can easily visualise the metro design guidelines and make changes on the fly and you have an amazing combination!
unlike expression blend (and more like firebug), you can simply select an element in your control tree and make those “just a little bit to the left” tweaks. you’ll note from my example image on the right of my google analytics app intheknow that it even highlights the control you have selected on the emulator screen.
it also has a built in isolated storage viewer, screen shot tool, resource viewer and xap package explorer.
the licensing for silverlight spy has two options, a free limited version that doesn’t support windows phone 7, and a personal license for 69 euro.
in a word – priceless
i will do a more detailed post on silverlight spy soon.
isolated storage explorer
in very basic terms it allows you to copy the isolated storage for your windows phone 7 application to a local folder so that you can view/edit etc. the files that are stored on your device – you can then copy these files back onto your device allowing you to easily upload sample data to test certain situations that can be a bit harder such as large asset/image libraries, corrupted/invalid serialized data and performance issues from opening/saving overly large files.
this tool has helped me troubleshoot a number of weird serialization issues i've had in the past, and with the addition of background agents in windows phone 7.1 sdk its been a priceless tool for helping troubleshoot/view activity logs on my device during testing.
the silverlight toolkit is a package of controls that extend the windows phone 7 sdk and is released under the microsoft public license.
it is filled with a number of controls that are really missed in the base sdk (high performance progress bar anyone?).
a number of these you simply can’t get by without – the wrappanel and datetimepickers are definitely in this group.
portable class library project template
most windows phone 7 apps end up having web services/websites/windows applications that sit side-by-side with them in a solution. often this leads to code duplication as you keep your common classes in more than one place and struggle to keep them up to date/unit test them.
the portable class library visual studio add-on solves this by offering a class library project type that is compatible with any .net project (asp.net, wpf, silverlight, xna). i’ve also tested this in multiple build-server environments without problem.
why this isn’t included as part of visual studio out-of-the-box we’ll never know.
i’ve used this in nearly every one of my windows phone 7 projects – i highly recommend it.
high performance progress bar
this is now included in the mango version of the silverlight toolkit, but was originally created by jeff wilcox from the windows phone 7 team.
in simple terms if you use the progress bar control in indeterminate mode (i.e. never ending a-synch waiting) in your windows phone 7 app, your progress bar is being a complete performance hog – the problem is more finicky in that you will only notice this problem once you’ve actually deployed your app to a real device as it runs fine in the emulator.
the problem is caused by the out-of-the-box progress bar control using the compositor thread exclusively for it’s animation instead of the ui thread.
in the early days of windows phone development this was a gripe that a number of developers moaned about until jeff came out with this replacement control.
metro grid helper
the windows phone 7 team have definitely created something amazing with the metro design styling that windows phone 7 comes with, but like nearly all design styles metro looks most polished when everything is perfectly in symmetry.
for metro this means 12px spacing everywhere, run on button text, and overall a simple rule of living and dying by alignment .
the tiny nuget package metrogridhelper (its only a single class!) serves these needs perfectly by simply overlaying a 24px x 24px grid with 12px spacing over your app to make fixing alignment issues and conforming to the windows phone 7 design guidelines dead simple.
jeff released the first version of this at the end of 2011 and it hasn’t left my toolbox since.
windows phone test project
the unit testing tools available to windows phone 7 developers aren’t really there at all out-of-the-box.
a fellow aussie jake ginnivan , noted this and created a project template that allows you to use either the silverlight unit testing framework or the windowsphoneessentials.testing framework to unit test your windows phone 7 code.
i am still yet to see many developers discussing unit testing in the windows phone 7 world – mostly because a lot of apps written for the windows phone 7 platform are either simple or are written by people new to the .net space.
i think this is a bit of a shame as i think the mvvm patterns works really well with unit testing, so there should definitely be more engagement in this space over the coming year (hopefully).
check it out in either the extension manager inside visual studio 2010 or online:
this last one isn’t really essential but if you are spending a lot of time looking the windows phone 7 emulator you’ll most probably be getting a little sick of the basic “looks like no windows phone i've ever seen” skin on your emulator.
this can be easily replaced by any number of other phone skins – many from phones you’ve seen your local windows phone 7 owners toting, and even other un-released or soon to be released phones such as the new lumia 800.
the windows phone 7 emulator skin switch has 25 skins to try.
jeff wilcox (tell me about it… it’s like this guy has nothing better to do than create awesome stuff for wp7 devs) has also created a single skin based on the device shown throughout the msdn site:
Published at DZone with permission of Douglas Rathbone, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.