Silverlight 3 – Navigation & Prettying my URI’s

Ian saw my post with a little Silverlight navigation application and dropped me a mail saying “couldn’t you make those URI’s a little more pretty with the UriMapper?” and he’s right 🙂

Tim has an explanation of UriMapper up here so I just followed that and mapped a few things and so now I should be able to use URI’s like these;

http://www.mtaulty.com/downloads/SLMusic/music.html#artists

http://www.mtaulty.com/downloads/SLMusic/music.html#albums

http://www.mtaulty.com/downloads/SLMusic/music.html#albums?artist=Bob%20Dylan

http://www.mtaulty.com/downloads/SLMusic/music.html#songs

http://www.mtaulty.com/downloads/SLMusic/music.html#songs?artist=Bob%20Dylan

http://www.mtaulty.com/downloads/SLMusic/music.html#songs?album=Blood%20On%20The%20Tracks

not sure if I can do anything to pretty them up more than that but removing the need for the URI to contain “/Pages/{XYZ}.xaml” is definitely an improvement both from the point of view of convenience and of maintenance.