Main contents

Unable to set TestContext property for my class (.NET Compact Framework)

12 August 2008

Suppose 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 {class}. Error:  System.ArgumentException: Object [...] Read more »

Posted in .NET | No Comments »

The Missing .NET #5: Tracepoints

16 June 2008

Lately, I’ve been debugging windowing code often. Windowing code is stuff like window sizing, resizing, painting, etc.; code that has something to do with drawing the window. Debugging that code used to be fairly arduous because anytime you stepped into your method, looked around, then started execution again, the windowing code would need to be re-run because you had Visual Studio focused and not your app; since you have a breakpoint in the windowing code, Visual Studio would break into your method which you probably didn’t want this time because you were already there, so you hit F5 again to continue execution and start the cycle over. Read more »

Posted in .NET, Missing .NET | 1 Comment »

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 basically [...] 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 implement [...] 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 following:
Next, [...] Read more »

Posted in .NET | 1 Comment »