For Margin
you want the Thickness
attributes to set it, so instead of a System:Double try;
<Thickness x:Key="Height" Left="0" Top="2" Right="0" Bottom="0" />
<Button Margin="{StaticResource Height}" Content="Hey I have a Margin now"/>
Hope this helps.