<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: RC0 - TextAlignment in Style Setter for Button causes System.Windows.Markup.XamlParseException:</title><link>http://forums.silverlight.net/forums/thread/98054.aspx</link><pubDate>Fri, 26 Sep 2008 20:22:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:98054</guid><dc:creator>coughlinj</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/98054.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=98054</wfw:commentRss><description>&lt;p&gt;Yes TextAlignment and TextWrapping have been removed as per the breaking change doc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;One way of getting around the alignment is just to use HorizontalContentAlignment.&amp;nbsp; It of course will affect all content of the button.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The text wrapping (and for that matter the TextAlignment) can be specified on a TextBlock that is used as the content of the button.&amp;nbsp; For example... &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button VerticalContentAlignment=&amp;quot;Bottom&amp;quot; HorizontalContentAlignment=&amp;quot;Left&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text=&amp;quot;Hello world&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Button&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This would be the equivalent of Beta 2&amp;#39;s&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;Button Content=&amp;quot;Hello world&amp;quot; TextAlignment=&amp;quot;Left&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; /&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope that helps I realize your situation maybe more complicated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>RC0 - TextAlignment in Style Setter for Button causes System.Windows.Markup.XamlParseException:</title><link>http://forums.silverlight.net/forums/thread/98032.aspx</link><pubDate>Fri, 26 Sep 2008 19:54:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:98032</guid><dc:creator>dbaechtel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/98032.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=98032</wfw:commentRss><description>I have a recent MSDN magazine sample code for Silverlight 2.0 and I am trying to run it with Silverlight RC0. When I run the code it gets a System.Windows.Markup.XamlParseException on the LoadComponent(App.xaml) on the following line in a Style Setter for TargetType=&amp;quot;Button&amp;quot; :
&lt;br /&gt;&lt;br /&gt;
vsm:Setter Property=&amp;quot;TextAlignment&amp;quot; Value=&amp;quot;Center&amp;quot; 
&lt;br /&gt;
&lt;br /&gt;
This is apparently another recent breaking change. How do I set the TextAlignment in a Button Style in SL RC0?
&lt;br /&gt;&lt;br /&gt;
The same seems to be true for TextWrapping in Style for Button. How do I set the TextWrapping property?</description></item></channel></rss>