Welcome to WindowsClient.net | Sign in | Join

Rob Relyea - XAMLified

WPF, Silverlight and XAML

Josh Twist: Text isn’t so bad

Josh Twist has an interesting post arguing that XAML writability is very important, and that many people want to edit XAML directly.

While we have focused on ease of human authoring of XAML as a goal, it has always been balanced with other goals, like toolability. Some quotes:

His two examples of things that could improve WPF hand authoring of XAML:

  • RowDefinitionCollection, ColumnDefinitionCollection could both have a type converter associated with them to support a syntax like that.
  • Transform used to have a type converter to make ScaleTransform, RotateTransform easier that we removed late in 3.0…yes, a markup extension could also be used.

Yes, we have a bit of a love/hate relationship with minilanguages. We need to reevaluate the pros/cons of minilanguages (as Mike Hillberg was just mentioning the other day) with the XAML team, the WPF/Silverlight team, and XAML based tools teams.

In these cases, there are things that type authors can do (add a type converter), things that developers can do (build a type converter), and future things we could do in the XAML language.

I’m interested to see your opinions on the issues that Josh brings up in his post.

Published Thursday, May 28, 2009 11:06 AM by Rob_Relyea
Filed under: , ,

Comments

# re: Josh Twist: Text isn’t so bad@ Thursday, May 28, 2009 7:13 PM

I have to say that Josh's RowDefinition and ColumnDefinition suggestion really hit a chord with me. I find grids really awkward that way and I'm another guy that does all my coding by hand.

# re: Josh Twist: Text isn’t so bad@ Thursday, September 10, 2009 8:13 AM

I'm another person who write XAML by hand.  Actually my whole team does.

The shorthand notation for scale and rotate transformations looked great.  I saw it in the occasional example online and was frustrated when it didn't work for me.

Another question I wondered is why Setter.Value isn't a ContentProperty.  I asked the question on stackoverflow.com but it hasn't been explained:

stackoverflow.com/.../wpf-is-there-a-good-reason-that-setter-value-isnt-a-contentproperty

I've found ReSharper to be a great plugin when editing XAML.  It resolves binding paths in DateTemplates, and allows for several transformations on XAML nodes.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Page view counter