An update to the source code accompanying my article has been added to work with the new Silverlight 2 RC0 release (note it needs to get through moderation, but you’ll know it’s updated when you see a red message at the top of the article). A few changes needed to be made (primarily to do with control styles) which were throwing exceptions when building/running under the new release. Thanks go to the guys from the Blacklight project (which I use in the dashboard page) for updating their project to work under RC0 too, so that update has been incorporated into this update. The main issue I had to solve when updating was the fact that I couldn’t move around or maximise the dashboard panels anymore. I discovered this was due to the fact that I had put a text block in the “caption” of each panel – whereas previously the mouse down event went straight through my text block to be captured by the panel caption undernearth (to initiate a drag or click), under RC0 the text block was capturing the mouse event and not passing it through. Adding the attribute IsHitTestable with a value of False resolved this issue.
RC0 brings some new styles and controls with it – the DataGrid now looks a lot prettier so I’ve removed my own styling from the grid in this release. It still appears you can’t style the selected cell border (well according to the comment above it when I look at the style in the Data DLL in Reflector). Also with the new styles the line between the rows doesn’t extend across the whole grid width (just to the end of the last column, and some don’t make it all this way either). I guess that would be OK if you showed the vertical grid lines but I have chosen to hide these to achieve the look I want (or as close as I can get).
On a more positive note, the new rendering such that straight lines are aligned to the nearest pixel creates a much nicer and cleaner look. You’ll note that on the login screen I now use the new PasswordBox control for the password, and I use the new MessageBox command to notify when an incorrect password has been entered.
View the article here: