How can I prevent the VS WPF designer putting margins on every object from the toolbox
问题 When I drag a control from the toolbox on to the Visual Studio 2008 WPF design surface, it sets a margin based on where I dropped it and a default size. Is there any way to prevent VS setting those? When I drop a control on a stackpanel I want it to flow in to the existing controls in the panel. Thanks! 回答1: I've never found a way to prevent this. I just type the XAML instead. EDIT : I wrote the above nearly three years ago. In the meantime, it would appear that the design-time experience has