June 2008 Entries

Dispose of a WPF UserControl (ish)

I've been playing with WPF a little bit, and quite frankly got a bit stuck, (Meh! Who'd have thought). The problem is as follows: I create a UserControl - we'll call it 'MyUserControl' (wouldn't want to break traditions now would we). In said user control I have a button, that when pressed will fire off a new thread. This new thread will (say) poll a file / service - whatever - every 10 seconds or so, and update a Label accordingly. When I close the app, if the app is polling, then the app won't ......

RoundedButton Button Style (WPF)

So far, I have only one style which I'm currently using on all my buttons, and to be honest, I'm still working on it, but it's been in a pretty stable state of development for a while now, so I thought I'd share it. Let me introduce you to the imaginatively titled: RoundedButton. The above picture shows 3 buttons, the first (top-most) is the bog standard WPF button, no styles applied. <Button Height="30" Width="100" Margin="20">Normal Button</Button> The second two are RoundedButton styled, ......

Branching

(First Second post here, be fair, (harsh if you must)) I've developed in 3 main situations, University, Personally and Professionally, which I believe is probably similar for most developers. I'll freely admit that for my personal projects I've rarely (if ever) utilised source control solutions, *even* though I know that there are plenty of free solutions available. It's just never been an issue (though I am going to rethink that). University taught me squat all about how to use source control, I ......

New Home...

First post to the 'geekswithblogs' home... just looking for a way to shunt my current wordpress stuff over here (converting their own 'WordpressML' to BlogML) then we'll be cooking with gas... I've found some tools for doing it, so hopefully I can get that working and see where we end up! May even write about that experience.. The world (as they say) is my oyster ......