<?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: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/242503.aspx</link><pubDate>Sat, 04 Jul 2009 11:37:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242503</guid><dc:creator>mgmdomingos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242503.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=242503</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;tanmoy.r:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;Whether any class (Specially library class) should be sealed is a &lt;a class="" href="http://stackoverflow.com/questions/2134/do-sealed-classes-really-offer-performance-benefits"&gt;long debate between developers and framework developers&lt;/a&gt;. So what you are saying is not wrong but from the other point&amp;nbsp;even a slight performance benifit might come in handy when you have lots of TextBlocks in your application.&lt;/p&gt;
&lt;p&gt;So basically you need situations where without&amp;nbsp;inheritance it &lt;strong&gt;&amp;quot;can not be/ very hard&amp;quot;&lt;/strong&gt; to achive.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;mgmdomingos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Me for example wanted to do a TextBlock that automatically add ellipsis to text when the text exceeds the width of the textblock.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I guess this can also be achived with using binding and onverter class.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you be more specific when you speak about binding and converter class? Could you give an example?&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/242501.aspx</link><pubDate>Sat, 04 Jul 2009 11:35:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242501</guid><dc:creator>mgmdomingos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242501.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=242501</wfw:commentRss><description>&lt;p&gt;Can you be more specific when you speak about the binding and the converter class? Could you give an example?&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239757.aspx</link><pubDate>Tue, 30 Jun 2009 15:27:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239757</guid><dc:creator>AdamWM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239757.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239757</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;tanmoy.r:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;This is true for server side where you can improve Hardware cheaply than to invest of developers time. But it is not exactly the case where you have to support millions of clients (where the code runs at client side). Because though HW are becoming cheaper and&amp;nbsp;faster many people still dont upgrade them very often. for example you see &lt;a href="http://silverlight.net/forums/t/101744.aspx" class=""&gt;this post&lt;/a&gt;. Its about SW upgradation. HW upgradation is still slower. &lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m not saying that you shouldn&amp;#39;t care about performance -- you should. But you shouldn&amp;#39;t try to increase performance &lt;i&gt;at the expense of human productivity&lt;/i&gt; unless you have a very compelling reason, like actual measurement data that shows a substantial performance problem which can&amp;#39;t be alleviated another way.&lt;/p&gt;&lt;p&gt;Anyway, I don&amp;#39;t think the controls are really sealed for performance reasons. (Or if they are, they&amp;#39;re probably poorly designed.) I think the lack of resources for testing/development may be their primary concern, but then it becomes a matter of what they want to spend their time on.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239742.aspx</link><pubDate>Tue, 30 Jun 2009 15:11:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239742</guid><dc:creator>tanmoy.r</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239742.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239742</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;AdamWM:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;computer speed is increasing exponentially but human capabilities remain constant, you should always optimize for developer productivity&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;This is true for server side where you can improve Hardware cheaply than to invest of developers time. But it is not exactly the case where you have to support millions of clients (where the code runs at client side). Because though HW are becoming cheaper and&amp;nbsp;faster many people still dont upgrade them very often. for example you see &lt;a class="" href="http://silverlight.net/forums/t/101744.aspx"&gt;this post&lt;/a&gt;. Its about SW upgradation. HW upgradation is still slower. &lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239738.aspx</link><pubDate>Tue, 30 Jun 2009 14:57:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239738</guid><dc:creator>AdamWM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239738.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239738</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Just imagine if the System.Windows.Forms team said &amp;quot;Sorry, you can&amp;#39;t inherit from our controls because we didn&amp;#39;t want to take the time to test them...&amp;quot;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239737.aspx</link><pubDate>Tue, 30 Jun 2009 14:55:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239737</guid><dc:creator>AdamWM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239737.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239737</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;tanmoy.r:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Whether any class (Specially library class) should be sealed is a &lt;a href="http://stackoverflow.com/questions/2134/do-sealed-classes-really-offer-performance-benefits" class=""&gt;long debate between developers and framework developers&lt;/a&gt;. So what you are saying is not wrong but from the other point&amp;nbsp;even a slight performance benifit might come in handy when you have lots of TextBlocks in your application.&lt;/p&gt;
&lt;p&gt;So basically you need situations where without&amp;nbsp;inheritance it &lt;strong&gt;&amp;quot;can not be/ very hard&amp;quot;&lt;/strong&gt; to achive.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;No, it&amp;#39;s ridiculous to say that you should only optimize for humans&amp;#39; sake when their jobs would otherwise be very hard or impossible. Because computer speed is increasing exponentially but human capabilities remain constant, you should always optimize for developer productivity unless you have hard numbers that show substantial performance benefits that can&amp;#39;t be obtained any other way.&lt;/p&gt;&lt;p&gt;The only reasonable excuse I&amp;#39;ve heard is that the cost of testing that their controls will behave correctly when inherited from is too high, but even then it&amp;#39;s hardly satisfying...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239735.aspx</link><pubDate>Tue, 30 Jun 2009 14:44:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239735</guid><dc:creator>tanmoy.r</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239735.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239735</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;Whether any class (Specially library class) should be sealed is a &lt;a class="" href="http://stackoverflow.com/questions/2134/do-sealed-classes-really-offer-performance-benefits"&gt;long debate between developers and framework developers&lt;/a&gt;. So what you are saying is not wrong but from the other point&amp;nbsp;even a slight performance benifit might come in handy when you have lots of TextBlocks in your application.&lt;/p&gt;
&lt;p&gt;So basically you need situations where without&amp;nbsp;inheritance it &lt;strong&gt;&amp;quot;can not be/ very hard&amp;quot;&lt;/strong&gt; to achive.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;mgmdomingos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Me for example wanted to do a TextBlock that automatically add ellipsis to text when the text exceeds the width of the textblock.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I guess this can also be achived with using binding and onverter class.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239695.aspx</link><pubDate>Tue, 30 Jun 2009 13:29:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239695</guid><dc:creator>mgmdomingos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239695.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239695</wfw:commentRss><description>&lt;p&gt;Me for example wanted to do a TextBlock that automatically add ellipsis to text when the text exceeds the width of the textblock.&lt;/p&gt;
&lt;p&gt;My solution was to&amp;nbsp;create a new control from composition fo the textblock but in that way I didn&amp;#39;t inherith all the properties and behaviours of the textblock, which was pretty bad.&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;Microsoft is stopping good work from beeing made with the excuse of performance? I just say it&amp;#39;s ridiculous in this case, or else I ask why aren&amp;#39;t all the other controls sealed like the textblock if they could have better performance?? In my opinion it&amp;#39;s just a ridiculous excuse.&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239264.aspx</link><pubDate>Mon, 29 Jun 2009 17:50:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239264</guid><dc:creator>yifung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239264.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239264</wfw:commentRss><description>&lt;p&gt;One of the reasons is the extra test cost involved which is pretty significant, and Silverlight tends to be on a tight schedule.&amp;nbsp; For schedule purposes the items with compelling scenarios tend to be the ones that make it.&amp;nbsp; It sounds like using/styling the HyperlinkButton will work for your scenario&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239262.aspx</link><pubDate>Mon, 29 Jun 2009 17:33:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239262</guid><dc:creator>AdamWM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239262.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239262</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;yifung:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;You could style a&amp;nbsp;Button to look like a link.&amp;nbsp; There&amp;#39;s also a HyperlinkButton that you can probably use&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The HyperlinkButton would be easier to style, and I didn&amp;#39;t know about its existence.&lt;/p&gt;&lt;p&gt;&amp;nbsp;However, I still don&amp;#39;t think all these controls should be sealed. I searched all the forums and you guys still haven&amp;#39;t given any good reason to seal them. One guy mentioned performance, but how big is the gain, really? What percentage of a speed increase and/or memory decrease does sealing the classes provide? Computers are increasing in speed and memory capacity at an exponential rate, but the speed of human developers is not. Clearly it makes sense to optimize for ease of development unless the performance difference is really substantial, which I really doubt it is...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239254.aspx</link><pubDate>Mon, 29 Jun 2009 17:18:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239254</guid><dc:creator>yifung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239254.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239254</wfw:commentRss><description>&lt;p&gt;You could style a&amp;nbsp;Button to look like a link.&amp;nbsp; There&amp;#39;s also a HyperlinkButton that you can probably use&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/239171.aspx</link><pubDate>Mon, 29 Jun 2009 13:25:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239171</guid><dc:creator>AdamWM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239171.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239171</wfw:commentRss><description>Well I, for one, would like to inherit from TextBlock to create a Link button that displays clickable text like an HTML link.&lt;br /&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/232764.aspx</link><pubDate>Fri, 12 Jun 2009 20:34:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:232764</guid><dc:creator>yifung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/232764.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=232764</wfw:commentRss><description>&lt;p&gt;Out of curiosity, what&amp;#39;s your scenario for wanting to subclass the TextBlock?&lt;/p&gt;</description></item><item><title>Re: Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/232632.aspx</link><pubDate>Fri, 12 Jun 2009 14:53:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:232632</guid><dc:creator>tanmoy.r</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/232632.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=232632</wfw:commentRss><description>&lt;p&gt;ctually sealed classes improves performance. So many classes you will find are sealed. You can check if you can do something with &lt;a class="" title="Extention Methods - MSDN" href="http://msdn.microsoft.com/en-us/library/bb383977.aspx"&gt;extention methods&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Why is the TextBlock class non inheritable (sealed)?</title><link>http://forums.silverlight.net/forums/thread/232218.aspx</link><pubDate>Thu, 11 Jun 2009 18:44:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:232218</guid><dc:creator>mgmdomingos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/232218.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=232218</wfw:commentRss><description>&lt;p&gt;It would be very good if I could extend this class to have my own TextBlock control, so why is it sealed?&lt;/p&gt;</description></item></channel></rss>