Main contents

.NET Category Archive

BabySmash IV: ItemsControl and Data-bound UIs

11 June 2008

For background on what BabySmash is, read Scott Hanselman’s post here. This post was inspired by Ian Griffiths’s logged issue in the BabySmash issue tracker, titled "Application Logic Does Not Belong in Code Behind." My gut reaction was that that was overkill for such a simple application. BabySmash has almost no logic to it; it [...] Read more »

Posted in .NET | 3 Comments »

Using Commands in BabySmash

4 June 2008

For background, you should read the first post by Scott Hanselman on his BabySmash project. I’ve already written one post on how to to do configuration better. In this post, I’ll cover another aspect of WPF that Microsoft got right: commands. I’ve written about commands before. In that post, I was describing a way to [...] Read more »

Posted in .NET | 2 Comments »

StaticResource does not mean static

3 June 2008

My post about BabySmash got hanselmanned. There are some questions in the comments on that post that are worth addressing in another couple posts, so here’s the first. For background, we have Scott’s follow up post, describing how he changed the code because of my post. In Scott’s post, Configuration with DataBinding, he wrote the [...] Read more »

Posted in .NET | 2 Comments »

Redoing the Options Dialog in BabySmash

2 June 2008

Scott Hanselman introduced us to BabySmash today. It’s an app for his kids that he developed using his arcane Win32 knowledge in a WPF app. He did it on purpose, mind you, to teach himself WPF, with us watching. I think this is a fantastic idea. When I was writing the AutoComplete TextBox series, I [...] Read more »

Posted in .NET, Rants | 17 Comments »

The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF)

2 June 2008

A regular reader would know I’m quite enamoured with the Cue Banner as UI tool. Once again, in WPF, Microsoft missed something fairly obvious for inclusion; and really easy to implement, as we’ll see. We’ve been through 2 revs of WPF since its release, and the number of new controls or new features on old controls is disappointing. In case you missed it, .NET 3.5 SP1 Beta was released a few weeks ago. The grand total of new controls in WPF? One; admittedly, a useful one – a WebBrowser control. Read more »

Posted in .NET, Missing .NET | 18 Comments »