Last Build Date: Tue, 21 Jun 2016 16:58:00 +0000
Tue, 25 Nov 2008 03:07:40 +0000I recently had the pleasurable and painful experience of learning WiX to build a windows installer for a Windows Mobile application. The pain came first: there is quite a learning curve to both WiX and the underlying Windows Installer technology; and the documentation is a little thin on WiX 3, the latest version as I […]
Thu, 13 Nov 2008 01:57:55 +0000Have I mentioned lately how much I like data binding, lately? I use it everywhere I can: it makes writing UI code much easier. Anyway, working on a project at work I ran into the following problem: Consider this code: this.checkBox1.DataBindings.Add("Checked", this.myBindingSource, "MyBooleanProperty", true, DataSourceUpdateMode.OnPropertyChanged); This declares a data binding on checkBox1, a CheckBox control. […]
Tue, 11 Nov 2008 01:51:52 +0000The .NET framework is huge, but not so huge that it does everything for everyone; there are things that they in Redmond miss or don’t do for whatever reason but is still generally applicable to many developers. So, dear reader, I present to you a series of posts on stuff I find missing in .NET, […]
Thu, 11 Sep 2008 01:19:44 +0000The other day I was grabbing screenshots from an app I’m working on. I noticed a huge visual problem with a a list in the product: in a one-column ListView in Details view, each item’s text was truncated, as though the column’s width was just left to the default of 20 pixels (this is in […]
Wed, 03 Sep 2008 02:03:26 +0000Here’s a quick note to self that you may enjoy. I suck at art. Didn’t use to always, but it requires too much brain power. But I’m not bad at getting WPF to draw what I want. I had a logo in mind for this site and used WPF to generate it after unsuccessfully getting […]
Wed, 03 Sep 2008 01:52:31 +0000Enums are here to stay and we have to deal with them in various ways; displaying them to the user is one way they have to be dealt with. I'll give a treatment of how to display an enum in WPF in this post. You'll see that displaying them in all situations is non-trivial.
Tue, 12 Aug 2008 12:28:21 +0000Suppose you’re using Visual Studio 2008 and you’ve just found out that Microsoft added unit test support for the Compact Framework on devices and emulators. Neat-o! So you add one to your project thinking, this’ll be fantastic. Then it doesn’t work. You get the following cryptic error: Unable to set TestContext property for the class […]
Fri, 01 Aug 2008 13:59:01 +0000I’ve written often lately about WPF, including BabySmash posts and Missing .NET articles. I’ve decided to do a complete app using WPF. I’ve dabbled here and there with the concepts, but I’ve decided I don’t really know the framework that well. I still have to look up how to do something basic like master-detail data […]
Wed, 16 Jul 2008 18:48:30 +0000I’ve recently been asked for more detail on how I extracted my blog posts from Subtext. I hacked my solution together in a few nights of hacking. Once I got it working, I completely flushed all memory of what I did. But I was asked a whole two times, dear readers! With that overwhelming curiosity, […]
Mon, 07 Jul 2008 18:27:23 +0000In .NET 1.1, serialization (binary serialization, to be clear) is a bit hairy when you're successful enough to ship multiple versions of your product and you don't consider versioning until the first bug report about serialization problems. Changing the type, by either adding or removing fields, in .NET 1.1 causes previous versions of your type to lose their mind. The only way to deal with it was to implement ISerializable, which is fraught with problems, not the least of which is it makes you entirely responsible for serialization and deserialization of the whole type for ever and ever. When we found this out, this mass hysteria gripped us, so every serializable type had to implement ISerializable, even it were new to the next version, which is now a maintenance nightmare. We also got sloppy and applied the same boilerplate serialization code to every type. So we didn't handle it well, but you didn't really have a choice in .NET 1.1.