WPF set Margin Posted on 11.07.2013 by Sava — Leave a reply Thickness margin = MyControl.Margin; margin.Left = 10; MyControl.Margin = margin; http://stackoverflow.com/questions/1003772/setting-margin-properties-in-code