Keyboard school day

For the most part I am a self taught web developer and, for the most part, this is OK, because I'm capable of learning what I need to, when I need to. Just-in-time knowledge. Today I've been showing my son how to write HTML and he asked me how I learned to type so fast... Continue Reading →

Time to reboot

Throughout my career I've always loved my job. But recently I've struggled. I've been working on a lot of legacy projects, I've not been empowered to implement change and I've not been proud of the products I've been creating. This bothers me. It bothers me because I care. I need to reboot. I need to... Continue Reading →

Converting performance data to reports

In my previous article about collecting performance data from remote-servers we looked at a script for extracting perf-data from multiple servers. This script is used to convert the extracted CSV file into an HTML report. clear# define the first field in the file - this will be the x-axis for most graphs# and can also... Continue Reading →

Silverlight Commands – Data grid row selected

following on from http://thoughtjelly.blogspot.com/2009/09/silverlight-prism-commands-textchanged.html and in response to John Papa’s PDC talk http://johnpapa.net/silverlight/mvvm-and-prism-demo-for-pdc09-silverlight-session. Another highly useful command behaviour is for DataGridRowSelected. This also gets over the issues described here and here. The code (as written by John Papa) is: public class DataGridRowSelectedCommandBehavior : CommandBehaviorBase{public DataGridRowSelectedCommandBehavior(DataGrid selectableObject): base(selectableObject){selectableObject.SelectionChanged += OnSelectionChanged;}private void OnSelectionChanged(object sender, SelectionChangedEventArgs e){this.CommandParameter =... Continue Reading →

Data-binding Radio Buttons in Silverlight to Enum

In Silverlight there is no Enum.Getvalue() method, so there is not out-of-the box way of databinding a radio buttongroup to an enumerable value in a viewmodel. Step forward converters. using System;using System.Windows.Data;namespace YourNamespace{ public class EnumBoolConverter : IValueConverter{ #region Methods public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture){ if (value == null ||... Continue Reading →

A WordPress.com Website.

Up ↑