XML – Jay R. Wren – lazy dawg evarlast http://jrwren.wrenfam.com/blog babblings of a computer loving fool Wed, 15 Feb 2017 02:57:57 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.2 XAML Comments in Attributes. http://jrwren.wrenfam.com/blog/2011/03/31/xaml-comments-in-attributes/ http://jrwren.wrenfam.com/blog/2011/03/31/xaml-comments-in-attributes/#comments Thu, 31 Mar 2011 18:53:55 +0000 http://jrwren.wrenfam.com/blog/2011/03/31/xaml-comments-in-attributes/ Continue reading "XAML Comments in Attributes."]]> Sometimes I wish that XML supported comments in attributes instead of just <!—style.

Almost always this is a XAML file that I wish had this.

Today I realized just how silly I was being.

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  mc:Ignorable="d"

And now I can just d:Anything=”any comment”.

Sure, I can’t nest my quotes there, but this is good enough for a lot of things.

<Grid d:Purpose=”this is the grid that contains the other grid that contains the things”>…

]]>
http://jrwren.wrenfam.com/blog/2011/03/31/xaml-comments-in-attributes/feed/ 1