<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx</link><description>Tip 
 Put XAML attributes and elements on multiple lines so the markup is easy to read and work with 
 Explanation 
 The last few tips have dealt with DependencyProperty issues. Now it's time for something completely different: XAML. While it's nice</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10033779</link><pubDate>Fri, 02 Jul 2010 09:38:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10033779</guid><dc:creator>akjoshi</dc:creator><description>&lt;p&gt;VS itself provides very good support for formatting(auto) XAML. You just need to set few settings and that&amp;#39;s it, you can easily format your XAML by using one shortcut and moreover if you copy paste the code VS automatically formats it.&lt;/p&gt;
&lt;p&gt;Auto formatting the XAML :&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/akjoshi/archive/2009/02/19/auto-formatting-the-xaml.aspx"&gt;weblogs.asp.net/.../auto-formatting-the-xaml.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10033779" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10031157</link><pubDate>Sun, 27 Jun 2010 08:15:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10031157</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Colin,&lt;/p&gt;
&lt;p&gt;I tend to create Bindings using the conventional markup extension form (Property=&amp;quot;{Binding ...}&amp;quot;) and I leave everything on the same line. I realize that in some cases the Binding can get pretty complicated, but in my mind the whole line is generally doing just one &amp;quot;thing&amp;quot; (like setting the TextBlock&amp;#39;s Text property). So while I realize that specific aspects of the Binding can change independently - thereby defeating some of the point of my revision control argument - this hasn&amp;#39;t been much of an issue for me so far.&lt;/p&gt;
&lt;p&gt;However, (I know *you* know this, Colin, but some folks might not be aware) Bindings can also be specified with object element syntax (&amp;lt;Binding .../&amp;gt;), so that&amp;#39;s definitely an option for people who want to take my recommendation to the extreme. :)&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms752300.aspx"&gt;msdn.microsoft.com/.../ms752300.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10031157" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10031077</link><pubDate>Sat, 26 Jun 2010 20:25:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10031077</guid><dc:creator>Colin E.</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Looks neat to me, but what about bindings? They can get pretty verbose with Path, Converter (plus StaticResource referencer), ConverterParameter et. al.&lt;/p&gt;
&lt;p&gt;However, they look a bit funny when spread across multiple lines. &lt;/p&gt;
&lt;p&gt;How do you handle these?&lt;/p&gt;
&lt;p&gt;Colin E.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10031077" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10030230</link><pubDate>Fri, 25 Jun 2010 17:04:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10030230</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Rob,&lt;/p&gt;
&lt;p&gt;What you say is true, though it&amp;#39;s been my experience that the default (ZIP) compression that&amp;#39;s applied to the content of XAP files really tends to minimize the impact of extra XAML whitespace on the final download size. There&amp;#39;s some value in &amp;quot;minifying&amp;quot; the XAML for public assemblies, but I&amp;#39;m not aware of any great infrastructure to do so at this time - possibly because the benefit is relatively low in the overall scheme of things. However, if you find out about a good option here, I&amp;#39;d love to know about it! :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10030230" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10030184</link><pubDate>Fri, 25 Jun 2010 15:39:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10030184</guid><dc:creator>Jobi</dc:creator><description>&lt;p&gt;Nowadays all of us have wide screen display for development, So you will really need to utilize the screen area and minimize the scrolling. I second Morton&amp;#39;s point of putting all usual/common attributes like Margin,Grid.Column etc on a single line horizontally. Most of those we(As a developer) don&amp;#39;t care, and in Expression-Blend you dont really need to read those XAML. But put all Binding and other uncommon Attributes in new lines. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10030184" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10030141</link><pubDate>Fri, 25 Jun 2010 14:08:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10030141</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;I have found that in certain places in Xaml this is worthwhile. What works better is to change the color settings in VS so that the attributes and values &amp;#39;pop&amp;#39; more. This keeps you from having to go back and edit a lot of UI stuff more than necessary.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10030141" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10030053</link><pubDate>Fri, 25 Jun 2010 09:20:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10030053</guid><dc:creator>Rob</dc:creator><description>&lt;p&gt;I write lots of XAML by hand so I totally agree except, &lt;/p&gt;
&lt;p&gt;remember that xaml does not get stripped of white space when added to the xap and services like bing map apps require all xaps to be under 100k.&lt;/p&gt;
&lt;p&gt;This is especially true of comments that also not stripped.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10030053" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10029998</link><pubDate>Fri, 25 Jun 2010 06:12:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10029998</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Marc/Mark,&lt;/p&gt;
&lt;p&gt;I hope you both get your wish - but for most people, I think the reality is probably somewhere in between... :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10029998" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10029956</link><pubDate>Fri, 25 Jun 2010 03:24:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10029956</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;My opinion only. &amp;nbsp;I hope I will always be able to write xaml by hand. &amp;nbsp;Many activities are quicker than can be done by mousing which I assume is what you would prefer.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10029956" width="1" height="1"&gt;</description></item><item><title>re: Breaking up (lines) is (not) hard to do [Tip: Put XAML attributes and elements on multiple lines so the markup is easy to read and work with]</title><link>http://blogs.msdn.com/b/delay/archive/2010/06/24/breaking-up-lines-is-not-hard-to-do-tip-put-xaml-attributes-and-elements-on-multiple-lines-so-the-markup-is-easy-to-read-and-work-with.aspx#10029868</link><pubDate>Thu, 24 Jun 2010 22:35:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10029868</guid><dc:creator>Marc Roussel</dc:creator><description>&lt;p&gt;My opinion only. &amp;nbsp;I hope I will never have to write any xaml by hand.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10029868" width="1" height="1"&gt;</description></item></channel></rss>