March 26, 2008

Sorting with Silverlight 2's DataGrid Control

So I am just starting to get my feet wet with Silverlight 2.  I have gained some confidence over the past few days, but on the crawl, walk, run scale it feels like I am still crawling.  Beginner or not, I figured I would take a shot at getting Silverlight's DataGrid control to support sorting.  Nothing too complicated - just the standard click on the column header to sort the data.  Surprisingly, I didn't see much on MSDN talking about how to implement sorting using the DataGrid.  I know the documentation is still in the works so I am sure it is coming, but I was a little bit concerned about how to get started.  No worries though, it turned out to be a breeze.  If you are interested in the details, I have a quick description of what I did just beneath the following screen shot. Live Demo |...

Comments (12) | TrackBacks (3)

March 23, 2008

A Quick Look at Silverlight 2's DataGrid Control

If you follow my blog, you have probably noticed my obsession with data grids.  I haven't actually checked my archives, but if I had to guess I would bet somewhere around 70% of all my posts in some way include ASP.NET's Repeater, GridView or ListView controls.  Lately I have been taking a look at Silverlight 2 so naturally I was curious when I saw Scott Morrision's post titled Using the Silverlight DataGrid.  I eagerly read through his post and started working on creating a very basic demo app.  I thought a good way to introduce myself to the DataGrid would be to build a page that allows me to set the values of the DataGrid properties so I could watch how it effects how the DataGrid presentation (usually this is what a designer is for, but it wasn't working so well for me.  I am sure it's user error.).  Anyway,...

Comments (11) | TrackBacks (0)

March 18, 2008

Creating a Custom Skin for Silverlight 2's Button Control

For the past couple of weeks I have been reading about Silverlight 2.  I have gone through ScottGu's tutorial, checked out the deep zoom demos (here and here) and even browsed the XAML for some sample control themes.  But I haven't actually tried to build anything myself yet.  So I thought I would put together a small sample around Silverlight's styling and templating features by creating a skin for the Button control that looks somewhat like the a button renders in IE7 on my Vista box.  I know that in a way it's taking a step back (Silverlight's default Button is really pretty sweet looking), but I didn't want to be too overwhelmed for my first sample.  The grid below shows what my Button control looks in each of the 4 states the Button supports.  If you look close at the Buttons background, you can see it has that nice...

Comments (7) | TrackBacks (2)

March 12, 2008

Live Demo of ScottGu's Silverlight 2 Beta 1 Digg Application

This afternoon I made a second pass through ScottGu's 8 part tutorial on Silverlight 2 Beta 1.  This time around I downloaded his demo application, browsed the source code and played around with the app a little bit.  It was all very impressive.  And to be honest, a little bit overwhelming - everything is new again. I didn't see any live demo links on Scott's blog, so I thought I would upload his digg demo app to my web server.  So if you want to view his app without downloading the code (or if you don't have VS 2008), you can view the live demo here.  Hopefully Scott won't mind ... Also, the search box does a search for digg stories based on topic so if you enter a topic that doesn't exist nothing really happens.  Some good search terms to use are basketball, baseball, golf programming, hardware, microsoft Live...

Comments (9) | TrackBacks (0)

This Blog

  • Email Me
  • RSS
  • Atom
  • Entries - 102
  • Comments - 1276
  • Recent Comments

    • Chau wrote: Matt, I know its wrong to ask? Do you have black and gray version of the images? If would really h...
    • thombcoroemar wrote: Hi. Very interesting site! Thanks!...
    • ntulip wrote: i've followed your example and it seems that it doesn't work when your controls which expose the met...
    • Dave wrote: Anyone figure out the masterpage issue?...
    • rayzal wrote: Nice! i like it so much. Anybody here knows how to do it in PHP? Really appreciate any help :) thnks...
    • vitta wrote: Hi Matt.. I have the smillar requirement on navigating tabs on previous and next buttons. But I am...
    • Kabir wrote: Hi Matt I have been trying to implement this modal edit interface and i have been able to successful...
    • Gustavo Camps wrote: Excellent Blog!!!! is it possible to add Keyboard Navigation funcionality to vs2008 Lisview?...