Adding designtime detection to WPF utilities.