Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Remove grid lines in WPF Design View

Is there a way to remove the annoying grid lines in the design view of Visual Studio 2010? Or at least style them to fade them off?

I'm not referring to the Grid component, but to the design view in WPF which draws visual lines over and around every components, making screens look like a soup in design view.

like image 556
keyle Avatar asked Nov 08 '10 03:11

keyle


2 Answers

In Blend, if you disable Show Handles (in View > Show Handles, or F9), you can turn off those stupid blue lines.

like image 153
DefenestrationDay Avatar answered Oct 13 '22 15:10

DefenestrationDay


Pretty sure you can derive from Grid and build design-time meta-data assembly with it as described on this msdn blog:

http://blogs.msdn.com/b/wpfsldesigner/archive/2010/01/13/wpf-silverlight-design-time-code-sharing-part-i.aspx#required

The reason I suggest deriving from Grid is because you want the designer to load new meta data for the type. Hopefully this implementation will override default behaviour although I have not tried myself.

Can I ask why you want to make this change? I am interested.

like image 33
Gusdor Avatar answered Oct 13 '22 15:10

Gusdor