Category Archives: .NET

WP7 Navigation Gotcha

Navigating to a page, passing a key defined by a third party can present problems, but taking a little care over the way you pass the parameters can save a world of pain later. Continue reading

Posted in .NET, C# Snippets, Windows Phone, WP7 | Comments Off

Silverlight Toolkit ExpanderView – Flat Objects

Just one of many ways in which you can bind an ExpanderView control to a collection of simple objects. Continue reading

Posted in .NET, C# Snippets, Windows Phone | Comments Off

Alter a Pivot controls header template the easy way (WP7)

If you want to alter the template for a Windows Phone 7 pivot control’s header, the simplest way is as follows… Of course, all this example does is specifically set the colour used for the title and headers to black, … Continue reading

Posted in .NET, C# Snippets, Mango, Windows Phone, WP7 | Comments Off

Alternating ListBox item background colours in WP7

I had a requirement today to implement alternating row colours in a Windows Phone 7 ListBox. After a bit of frustration with searching and only finding answers tht said “You can’t do it”, or that you need to add a … Continue reading

Posted in .NET, C# Snippets, Mango, Windows Phone, WP7 | Comments Off

Split a Camel-Cased word into its components

I needed to split a camel-cased word into it’s component parts, and found the following extension method to help out. It works pretty well.

Posted in .NET, C# Snippets, Extension Methods, Uncategorized | Comments Off

Fuzzy-Matching of names

Yesterday at work, I had to try to knock together a quick application to parse a database table and pull out records with a matching name.  Simple at first glance, but more complex when you think about the common mis-spellings … Continue reading

Posted in .NET, SQL | Tagged , , , | Comments Off

ASP.NET MVC – Deploying on Win XP

This is the second in a series of posts about things I found out while learning ASP.NET MVC. Today : Setting up your development XP machine to run your site. This is actually quite a simple one, but be warned, … Continue reading

Posted in .NET | Tagged , , | Comments Off

ASP.NET MVC – Preparing for the real world

This is the first in a series of posts about things I found out while learning ASP.NET MVC. Today : adding jQuery support that will work wherever the app is deployed in a directory structure. In order to reference the … Continue reading

Posted in .NET | Tagged , | 1 Comment

System.Linq – Unleash the power!

I’ve been poking about with the System.Linq namespace in C# 3.5 this week.  Like most “new” areas of a language, it can be difficult to find the time or motivation to delve into the capabilities it provides, but I’ve just … Continue reading

Posted in .NET | Tagged , , , | Comments Off

Windows 7 on the MacBook

I’ve just installed Windows 7 on my MacBook’s BootCamp partition, and so far it looks great.  I’m not new to Win7, having had it installed in a Parallels VM since it was released.  The experience on the MacBook’s native hardware, … Continue reading

Posted in .NET, MacBook, Win7, windows | Comments Off