XamlPad is a nice tool for viewing how the Xaml looks like and is used quite a lot for repro'ing bugs and debugging to some extent. :)... I thought it would be nice to extend it as some of the readers have asked abt it.... so here are some of the extensions that i have added and is now available for your use...
So what do we have:
1> 3 additional toolbar buttons (with some color 🙂 )
2> A xaml writer which parses the object back into xaml and vice versa
3> Simple command interpreter with limited intellisense (please look at help window for limitations)..
The interpreter can use either the Name given to the control (<TextBox Name="tb"/>) or if the name is not provided in xaml then the object can be passed to the interpreter through the VisualTreeExplorer context menu (see image)
4>Possibility to add custom snippets through a xml file (currently only 3 categories/ main nodes are read and the structure should be as followed in the attached xml file. Only one level of nestedness is supported which is actually more than sufficient)
5>Viewer of default styles
6>Color pallette - color chosen depends on mouse movement. Once color is decided perform a mouse click to finalize... Its also possible to chose from the different shades of a particular color (2nd box) . again a mouse click finalises the color in this box. The third box shows the color chosen
7> Find/Replace/Goto commands in the xaml editor
The exe is attached so that you could use it with the latest bits... The zip file also includes the xml file ( by Robby Ingebretsen) which has been used for structure as well as for additional snippets...
Unfortunately the code cannot be provided as it is an extension to XamlPad whose code is not public 🙁 .