More Love for XAML Syntax: Dotted Element Names.
Don Box simplified my XAML code ... what you're looking at is a more convenient way of specifying an XML attribute using XML element syntax. For example, while you can specify a menu item like s
<MenuItem Header="New" />
However, if you're doing anything fancy, like specifying an access key, you can do this using the dotted element name syntax:
<AccessKey Key="N" />
In the first case, we're just specifying a string, so declaring the Header attribute inline makes sense. In the second case, we're composing the Header for the MenuItem as a FlowPanel, combining an AccessKey and a SimpleText element.... [via Marquee de Sells: Chris's insight outlet]
Heck, I hope its not really going to be this verbose otherwise we are just back to IDE based editing only; is this possible, and if not why not?
<MenuItem Text="&New" AccessKey="N" />
I wouldn't have said that an access key on a menu is 'fancy'.