Unindenting in Expression Blend drove me mad, I just couldn’t get it to work. Today I figured out why.

The code I am copying from Visual Studio uses spaces for indentation, in Blend I was using tabs, this means when I paste code from VS, Blend doesn’t see any tabs to ‘unindent’.

Simple solution – make sure your Visual Studio indentation settings match your Blend settings.

Expression Blend indent settings

Visual Studio indent settings