WPF and MousePosition

The way I thought it should be done (but it’s wrong): “Mama Freeda! Dang window won’t go where I put it!” Okay, maybe I didn’t say “Mama Freeda” nor “Dang” but none the less itseems like when getting a mouse position in WPF and trying to open a newwindow relative to the mouse click is […]

.

Read more

Namespace Aliasing

When working with WPF, though this is applicable universally, a lot oftimes you end up working with both the old WinForms stuff and the newWPF stuff.  The object names between the two namespaces are almostidentical which can be a real pain meaning anytime you reference “Label”in code (but outside the XAML) you have to use […]

.

Read more

be ^ !be

 Unlike the & and | logical operators which seem to have dubious use the^ (XOR, exclusive or) logical operator can make things quite a bit easier. For instance ever write a IComparable? rather then: you can just do: like the other logical operators both sides of the conditional must beevaluated but since we’re doing exclusive […]

.

Read more

?? Is the way of the WORLD, HAHAHA

Recently I gave a quick talk to the devs at the court house about thecoalesce operator. So why do you care? Well, you probably don’t sojust quit reading right now. For those of you that are still around the coalesce operator works likeCOALESCE in T-SQL. For instance: Here in T-SQL we can see a simple […]

.

Read more

Stop that build!

I’m sure we’ve all clicked build by accident, especially with a dnn project. Did you know you can stop it? Ctrl + Break ref:stevenharman.net

.

Read more

Self-referencing Bindings

Between keeping up with what’s coming for .Net 4.0 as well as the end of a large DOD contract I’ve been a bit busy (and no developer fatigue, just busy :)). But don’t fret loyal readers, more will be coming soon. Until then here is a bit of xaml for self-referencing bindings. As you can […]

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712