+1  A: 

Try adding TargetType="{x:Type Button}" to your 'StyleB'.

Richard Davis
Thanks Richard. It works! But why doesn't it work without specifying the type?
Gustavo Cavalcanti
Sorry, I'm not sure why it is needed here.
Richard Davis