<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TextTrimming TextBlock for Silverlight</title>
	<atom:link href="http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</link>
	<description>inspiration for xaml nerds</description>
	<lastBuildDate>Mon, 08 Feb 2010 10:11:50 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sally</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-33444</link>
		<dc:creator>Sally</dc:creator>
		<pubDate>Mon, 14 Dec 2009 07:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-33444</guid>
		<description>I am relatively new to Silverlight, but I really need to use this control. The question that I had was, it is possible for me to embed &#039;More&#039;, in which case the entire text will be displayed, and &#039;Less&#039; will display the TextTrimmimg TextBlock. With html, this is easy, but I was wondering how to do in Silverlight.</description>
		<content:encoded><![CDATA[<p>I am relatively new to Silverlight, but I really need to use this control. The question that I had was, it is possible for me to embed &#8216;More&#8217;, in which case the entire text will be displayed, and &#8216;Less&#8217; will display the TextTrimmimg TextBlock. With html, this is easy, but I was wondering how to do in Silverlight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-11-25</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-32715</link>
		<dc:creator>links for 2009-11-25</dc:creator>
		<pubDate>Wed, 25 Nov 2009 17:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-32715</guid>
		<description>[...] TextTrimming TextBlock for Silverlight This should work in WPF too. (tags: ui wpf silverlight tips controls) [...]</description>
		<content:encoded><![CDATA[<p>[...] TextTrimming TextBlock for Silverlight This should work in WPF too. (tags: ui wpf silverlight tips controls) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elegant Code &#187; Silverlight 4 Beta &#8211; Text Trimming</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-32626</link>
		<dc:creator>Elegant Code &#187; Silverlight 4 Beta &#8211; Text Trimming</dc:creator>
		<pubDate>Tue, 24 Nov 2009 02:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-32626</guid>
		<description>[...] Before Silverlight 4 if you wanted to dynamically add ellipses (the commonly used … to show that the sentence continues), you have to invent your own implementation which usually involves creating your own control that wraps a text based control and then manipulate the text inside based on the size.&#160; Similar to what Robby Ingebretsen had to do here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Before Silverlight 4 if you wanted to dynamically add ellipses (the commonly used … to show that the sentence continues), you have to invent your own implementation which usually involves creating your own control that wraps a text based control and then manipulate the text inside based on the size.&#160; Similar to what Robby Ingebretsen had to do here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TextTrimming - Pedro Álvarez Fernández en Geeks</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-32477</link>
		<dc:creator>TextTrimming - Pedro Álvarez Fernández en Geeks</dc:creator>
		<pubDate>Thu, 19 Nov 2009 19:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-32477</guid>
		<description>[...] que se habían hecho a mano. Dejo la dirección del blog por si a alguien le resulta de utilidad TextTrimming TextBlock for Silverlight . Dentro del código fuente describen los términos de licencia de su uso.  Posted: 19/11/2009 19:09 [...]</description>
		<content:encoded><![CDATA[<p>[...] que se habían hecho a mano. Dejo la dirección del blog por si a alguien le resulta de utilidad TextTrimming TextBlock for Silverlight . Dentro del código fuente describen los términos de licencia de su uso.  Posted: 19/11/2009 19:09 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TextTrimming - Sector 7G</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-32476</link>
		<dc:creator>TextTrimming - Sector 7G</dc:creator>
		<pubDate>Thu, 19 Nov 2009 19:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-32476</guid>
		<description>[...] que se habían hecho a mano. Dejo la dirección del blog por si a alguien le resulta de utilidad TextTrimming TextBlock for Silverlight . Dentro del código fuente describen los términos de licencia de su uso.  Posted: Nov 19 2009, [...]</description>
		<content:encoded><![CDATA[<p>[...] que se habían hecho a mano. Dejo la dirección del blog por si a alguien le resulta de utilidad TextTrimming TextBlock for Silverlight . Dentro del código fuente describen los términos de licencia de su uso.  Posted: Nov 19 2009, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnaud Auroux</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-31049</link>
		<dc:creator>Arnaud Auroux</dc:creator>
		<pubDate>Thu, 08 Oct 2009 14:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-31049</guid>
		<description>Nice ! We can do the same thing using an attached property : http://blogs.codes-sources.com/thadeus/archive/2009/05/21/silverlight-comment-g-rer-le-d-bordement-d-un-textblock.aspx</description>
		<content:encoded><![CDATA[<p>Nice ! We can do the same thing using an attached property : <a href="http://blogs.codes-sources.com/thadeus/archive/2009/05/21/silverlight-comment-g-rer-le-d-bordement-d-un-textblock.aspx" rel="nofollow">http://blogs.codes-sources.com/thadeus/archive/2009/05/21/silverlight-comment-g-rer-le-d-bordement-d-un-textblock.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TextBlock Text Trimming &#124; Silverlike - A Free Microsoft Silverlight 3 Directory</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-30902</link>
		<dc:creator>TextBlock Text Trimming &#124; Silverlike - A Free Microsoft Silverlight 3 Directory</dc:creator>
		<pubDate>Sun, 27 Sep 2009 06:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-30902</guid>
		<description>[...] Demo New Window Website: http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight Download: [...]</description>
		<content:encoded><![CDATA[<p>[...] Demo New Window Website: <a href="http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight" rel="nofollow">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</a> Download: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight tip &#8211; Dynamic TextBlock &#124; Elegant Code</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-30674</link>
		<dc:creator>Silverlight tip &#8211; Dynamic TextBlock &#124; Elegant Code</dc:creator>
		<pubDate>Mon, 14 Sep 2009 22:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-30674</guid>
		<description>[...] Solution: Robby Ingebretsen at NerdPlusArt.com (and of Kaxaml fame) has a dynamic control that does just this.&#160; http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight. [...]</description>
		<content:encoded><![CDATA[<p>[...] Solution: Robby Ingebretsen at NerdPlusArt.com (and of Kaxaml fame) has a dynamic control that does just this.&#160; <a href="http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight" rel="nofollow">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight tip &#8211; Dynamic TextBlock &#124; Corey Schuman</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-30673</link>
		<dc:creator>Silverlight tip &#8211; Dynamic TextBlock &#124; Corey Schuman</dc:creator>
		<pubDate>Mon, 14 Sep 2009 22:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-30673</guid>
		<description>[...] Solution: Robby Ingebretsen at NerdPlusArt.com (and of Kaxaml fame) has a dynamic control that does just this.&#160; http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight. [...]</description>
		<content:encoded><![CDATA[<p>[...] Solution: Robby Ingebretsen at NerdPlusArt.com (and of Kaxaml fame) has a dynamic control that does just this.&#160; <a href="http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight" rel="nofollow">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flo</title>
		<link>http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight/comment-page-1#comment-30421</link>
		<dc:creator>Flo</dc:creator>
		<pubDate>Wed, 02 Sep 2009 14:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight#comment-30421</guid>
		<description>Hey, thanks!

I tweaked the ReduceText Method a bit, because i got an exception when the Text.Length is zero:

        /// 
        /// Reduces the text.
        /// 
        /// The text.
        /// The reduced length text
        protected virtual string ReduceText(string text)
        {
            if (text.Length &gt; 0)
            {
                return text.Substring(0, text.Length - 1);
            }
            else
            {
                return String.Empty;
            }
        }</description>
		<content:encoded><![CDATA[<p>Hey, thanks!</p>
<p>I tweaked the ReduceText Method a bit, because i got an exception when the Text.Length is zero:</p>
<p>        ///<br />
        /// Reduces the text.<br />
        ///<br />
        /// The text.<br />
        /// The reduced length text<br />
        protected virtual string ReduceText(string text)<br />
        {<br />
            if (text.Length &gt; 0)<br />
            {<br />
                return text.Substring(0, text.Length &#8211; 1);<br />
            }<br />
            else<br />
            {<br />
                return String.Empty;<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
