Tim Murphy's .NET Software Architecture Blog

April 2011 Entries

April 2011 Chicago Information Technology Architects Group Meeting

This one almost slipped away from me.  It is only a week until the next CITAG meeting.  This month Mike Vogt will be discussing ORM Frameworks and what they mean to the amount of code that our development teams have to write.  I am sure we will get into a discussion of the truths and myths around these products.  Come out and join us for a night of discussion and meet a few of your peers in the process.

Register here.

Beginning Windows Phone 7 Development

Windows Phone 7 development is an exciting topic.  I have been exploring WP7 development for a little while now and I figured I would post some of the basic concepts that might be helpful to beginners.  So here they are in no particular order.

Panorama control

I kept seeing references to the Panorama Control.  It seems that this was a control that existed separately during the beta for WP7.  In the final release this is now incorporated into a page type, so you won’t see the control in the toolbox.

So what is it?  This is a page type that contains panorama control and allows the user to swipe left or right to move between content.  You will se this in many of the apps you use every day including mail client that comes with the operating system as well as the games and market place hubs.

I have found it useful to place a ScrollViewer in the PanoramaItem element.  This gives bi-directional scrolling of your content.  Give it a try.

Application bar

The application bar is the row of buttons and menu at the bottom of the screen in a WP7 application.  In a normal Silverlight page it is commented out when you add it to the project.  Simply view the XAML and uncomment it.  You will be left with a set of placeholder buttons.  Then you just need to create or borrow some round button graphics and the event handlers.  Simple, isn’t it.


So the last topic I want to touch on in this post is Isolated Storage.  This is the local file based persistence for WP7 applications.  Conceptually it is a very simple technology.  It gets treated similar to any stream based storage in .NET.

You may find that it makes life easier to use one of the isolated storage based database libraries such as RapidRepository.  This allows you to handle reads, writes and finds in a much easier way than looping through the file and doing appends at the end of the file.

Hopefully you find these topics a good starting point for your WP7 development.