Triggering Storyboards Sans Code Behind in Blend

OK, so we’ve been through quite a series of iterations and refactoring for something simple: triggering a story board animation based on an event somewhere else. We used dependency and attached properties, we used custom behaviors, and now we’re going to do it completely “out of the box.” I figured this one would be easiest…

More Fun with Silverlight 3’s WriteableBitmap

I’m currently preparing a couple of new talks for TechEd Europe, which takes place next month in Berlin. One of the talks is entitled “Cool Graphics, Hot Code: Ten Visual Effects to Make You the Envy of Your Peers.” In it, I plan to present techniques for producing eye-popping graphics and visual effects in Silverlight…

Migrating Polling Duplex Binding Element from Silverlight v2.0 to v3.0 for WCF Services In The Cloud Code Samples

When running the WCF / Windows Azure samples (see my previous blog entry) you may get an error indicating that the Polling Duplex Binding Element cannot be loaded if you have Silverlight v3.0 installed (The type ‘System.ServiceModel.Configuration.PollingDuplexElement, System.ServiceModel.PollingDuplex’ registered for extension ‘pollingDuplex’ could not be loaded). Replace the reference in the WcfSamples project from the…

VS 2010 Beta 2 Concurrency Visualizer Profiling In Depth First Look

One of the most important technologies used at Microsoft is Event Tracing for Windows (ETW), especially inside Windows 7 and Server 2008 R2. There’s a small problem with ETW. It’s beyond wonderful for the Windows team at Microsoft, but for just about everyone else, it’s not so hot. Don’t get me wrong, ETW is an…

A Weak Post

The WeakReference is one of those fun interview topics. Some people have never heard of it and when they learn about it will say, “That’s a textbook question … why would I ever use a Weak Reference?” A weak reference references an object while still allowing that object to be reclaimed by garbage collection. Why…

VS 2010 Beta 2 Concurrency Resource Profiling In Depth First Look

Nearly everyone reading this is using a machine with multiple cores. With a basic laptop containing a dual core CPU and your average desktop with a four core CPU, we have processing power our computing ancestors could only dream about. Most of us developers are writing multithreaded applications to take advantage of that power, but…

VS 2010 Beta 2 Sampling and Instrumentation Profiling In Depth First Look

While some teams solve their performance problems by throwing bigger hardware at the problem, many of us really do care about creating fast code. Visual Studio 2008 Team Developer Edition and above has had a great profiler that I’ve used to solve many performance problems but Visual 2010 moves it into the realm of excellent…

VS 2010 Beta 2 Code Analysis In-Depth First Look

Code Analysis is one of those great tools that people don’t run nearly enough. I have screamed repeatedly, “Never do anything at run time you can do at compile time.” The best time to catch the Design Guidelines, security, and performance violations is at build time. Code Analysis and its standalone twin, FxCop, have been…

VS 2010 Beta 2 IntelliTrace In-Depth First Look

After getting a fresh copy of Visual Studio 2010 Beta 2, I was dying to see the amazing IntelliTrace feature. You know IntelliTrace as Historical Debugging, but consider HD as the code name. No matter what the marketing people call it, IntelliTrace is the single most important feature in the Visual Studio 2010 release. The…

My VS 2010 Beta 2 Install Experience

While I was hoping that VS 2010 would just install itself as soon as I downloaded the bits, they haven’t quite gotten that feature working just yet. I guess the team had to leave themselves something to do in the next version. I grabbed the new Ultimate edition as that replaces the Team Suite. The…