Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way for programmers to edit XAML

I was wondering how programmers chose to edit XAML. Most of the programmers I speak to seem to edit the raw XML, but that seems nuts to me since it is such a natural thing for a more visual editor (of course you often have to get down to the raw code ultimately, but isn't there a better way to lay out a grid, or edit a template, or add non c# triggers or manage commands? The one that really set me off was editing a menu -- Visual Studio 1.0 had a better menu editor for C++ than the raw XAML editing experience.)

When I edit .aspx files I use a visual editor much of the time, and then for the raw stuff I get into the html code.

I am aware of Expression Blend, but that seems far more focused on artistic types and GUI experts rather than programmers.

Does anyone have recommendations for a better editor for XAML than VS? Especially so since VS seems to have real nasty problems with XAML editing too, like bugginess and poor performance?

Appreciate your helping this XAML newbie.

like image 367
JessicaB Avatar asked Apr 04 '10 21:04

JessicaB


2 Answers

I must agree that Blend has the best XAML editor I've tried. While VS2010 has made some significant improvements over 2008, it's not at the same level as Blend, and still feels a little clunky and is prone to freaking-out.

A good option for doing quick and dirty XAML editing is Kaxaml, a small editor which can be thought of as NotePad for XAML. It's fast(er than VS), has syntax-highlighting, auto-completion and an in-editor preview. I find it quite useful to use alongside VS, although it is limited for serious work.

like image 175
Alex McBride Avatar answered Sep 19 '22 21:09

Alex McBride


The Visual Studio 2008 visual editor for XAML is still fairly primitive as you've encountered. When it comes down to wanting a true visual editor for XAML files, Blend is your best bet.

Like you, I originally thought Blend was targeted more for designers, but after using it for awhile now, I've found that Blend is clearly the best tool to visually edit XAML files. And since Blend integrates with Visual Studio Team System, you are able to switch between Visual Studio and Blend fairly seamlessly.

like image 30
Metro Smurf Avatar answered Sep 20 '22 21:09

Metro Smurf