Missing format specifier.

By Charlotte

I’ve been practicing my F# recently – I took a gap for a little bit, and just got back into it. I’ve been working through my ‘Foundations of F#’ book, and have hit a slight snag. There is one line of code I can’t get to compile, I get the ‘Missing format specifier.’ error for…

Setting up TeamCity…

By Charlotte

I’m gradually in the process of shifting our CruiseControl based CI service to use JetBrain’s TeamCity Professional solution (both are free). The main reason for moving to TeamCity is that whilst CruiseControl worked and did our CI adequately, TeamCity provided more bang for your buck (and when the buck is 0, it’s win-win). TC is…

Invoking UI Changes in WPF

By Charlotte

Again another reminder, in WinForms I would have done: private delegate void UpdateUiTextDelegate(Control control, string text); private void UpdateUiText(Control control, string text) { if(InvokeRequired) { Invoke(new UpdateUiTextDelegate(UpdateUiText), new object[] {control, text}); return; } control.Text = text; } Using the same delegate we need to use the Dispatcher.Invoke method – this is (as far as I’m…

Enabling / Disabling buttons in WPF

By Charlotte

I’m really only putting this in to remind myself — having come from a WinForms background, I’m used to: _btnOK.Enabled = false; but in WPF this is: _btnOK.IsEnabled = false; For some reason I (without fail) forget this!

WPF – working with designers – will it work?

By Charlotte

One of the main advantages of WPF is that you can write all the backend code and then shunt the design work to a professional designer – you know – one of those guys who thinks that Cyan and Magenta just don’t go together. I’ve been knocking up a couple of WPF apps in the…