SilverlightShow: The Silverlight BlockText Control Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: The Silverlight BlockText Control <p>Hi,</p> <p>Your BlockText control works fine, but wanted to know how to implement the Style property in the BlockText control which is similar to the TextBlock control.</p> <p>Thanks</p> <p></p> <p></p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment5559 Shohan http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Tue, 22 Feb 2011 12:01:03 GMT RE: The Silverlight BlockText Control <p>Hi,</p> <p>thanks for using my code and reporting this issue. As a workaround, insert in BlockText.cs at the beginning of the function "public void UpdateAll()", at line 187 the following code:</p> <p>            if (DesignerProperties.IsInDesignTool == true)<br />                 return;</p> <p>then it works. I will update the online project the next days.</p> <p>Maybe You could send a link, where I can see the BlockTextControl life in action<br /> inside Your project.</p> <p>Greetings, Tom</p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment4960 Tom http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Fri, 26 Nov 2010 00:59:55 GMT RE: The Silverlight BlockText Control <p>Hi,</p> <p>Thanks for the solution.<br /> I'm getting an error as "<strong>Object reference not set to an instance of an object</strong>" during design time, whenever I try to <strong>add more than one</strong> <span style="font-family: consolas; color: #0000ff; font-size: 13px;"><</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">kir</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">:</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">BlockText> </span>tag in my markup. I'm using Silverlight 4. I'm placing all <kir:BlockText> inside a stackpanel like:</p> <span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"> <p><</p> </span> <p> </p> </span> <p> </p> </span> <p><span style="font-family: consolas; color: #a31515; font-size: 13px;">StackPanel</span><span style="font-family: consolas; color: #ff0000; font-size: 13px;"> Background</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">="White"</span><span style="font-family: consolas; color: #ff0000; font-size: 13px;"> Width</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">="750"><br /> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">kir</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">:</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">BlockText</span><span style="font-family: consolas; color: #ff0000; font-size: 13px;"> x</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">:</span><span style="font-family: consolas; color: #ff0000; font-size: 13px;">Name</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">="txtBlockPrivacyPolicy"></</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">kir</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">:</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">BlockText</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">><br /> <span style="font-family: consolas; font-size: 13px;"><span style="color: #0000ff;"><</span><span style="color: #a31515;">kir</span><span style="color: #0000ff;">:</span><span style="color: #a31515;">BlockText</span><span style="color: #ff0000;"> x</span><span style="color: #0000ff;">:</span><span style="color: #ff0000;">Name</span><span style="color: #0000ff;">="txtBlockTermsAndCondtions"></</span><span style="color: #a31515;">kir</span><span style="color: #0000ff;">:</span><span style="color: #a31515;">BlockText</span><span style="color: #0000ff;">><br /> </span></span></span><span style="font-family: consolas; color: #0000ff; font-size: 13px;"></</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">StackPanel</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">> <p> </p> </span></p> <p> </p> <p> </p> <p> Thanks.</p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment4958 Abhilash http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Thu, 25 Nov 2010 09:54:45 GMT RE: The Silverlight BlockText Control Your source link is no longer working. http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment3624 Todd http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Tue, 18 May 2010 10:05:32 GMT RE: The Silverlight BlockText Control <p>Hallo M.,</p> <p>Danke für Deine Information. Die ContentCompression vom IIS ist nun ausgeschalten, dadurch wird das zip-File richtig übertragen. Falls Du Fragen hast, Du kannst mich unter kir.at kontaktieren.</p> <p>Grüße, Tom</p> <p>--------------</p> <p>For those who had problems downloading the sample zip-file: My IIS is now running with deactivated ContentCompression. So the zip will be downloaded correctly.</p> <p>Greetings, Tom</p> <p></p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment3281 Thomas Kirchmair http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Mon, 22 Mar 2010 12:17:01 GMT RE: The Silverlight BlockText Control <p>Hallo Thomas,</p> <p>ich habe Probleme, den ZIP-Download zu öffnen. Erhalte eine Fehlermeldung, der Ordner sei leer. Hast Du eine Idee?</p> <p>Beste Grüße,</p> <p>M.</p> <p> </p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment3280 LawBot http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Sun, 21 Mar 2010 18:44:16 GMT RE: The Silverlight BlockText Control <p>Hi Sachin,</p> <p>thank you for your interest on my BlockText-Control. I tried to include 3 BlockText-Controls into one StackPanel and inserted the StackPanel into a Canvas. I didn't get the error in Silveright 3 Release, but I mentioned that the layout update is different the time the control is inside a canvas. This results in the different layout-cycles of the canvas and that the HorizontalAlignment="Stretch" does not work for controls inside the canvas (which is default in all other situations).<br /> Please download the sample again, because I recently updated the sample project and online demo to Silverlight 3 Release. Then specify a width in pixels for each BlockText-Control inside your Canvas in xaml, so that the layout-system is able to determine the width for the first calculations.</p> <p>If you need further info please provide your contact,<br /> Tom Kirchmair</p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment2297 Thomas Kirchmair http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Tue, 01 Sep 2009 12:12:45 GMT RE: The Silverlight BlockText Control In my project I have added all the controls at runtime but when I add the blocktext control to statckpanel and then stackpanel to canvas, I get the error Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)), Can u please specify the solution for this http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment2287 Sachin Mukhija http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Fri, 28 Aug 2009 08:10:46 GMT RE: The Silverlight BlockText Control i hope that this will be fixed in final sl3 http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment1472 marko http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Wed, 15 Apr 2009 14:09:02 GMT RE: The Silverlight BlockText Control <p>Very innovative, however, I'm not sure if this solution is not somewhat to heavy. I would sooner have liked a custom panel for this kind of layout that does all the measuring and layout. That would be many times faster than having soo many instances of grid behind the scenes</p> <p>RJ</p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment1456 Ruurd Boeke http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Fri, 10 Apr 2009 22:17:06 GMT RE: The Silverlight BlockText Control <p>Very good solution. Still wondering why MS couldn't implement the feature.</p> <p>Thanks</p> http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx#comment1455 Nair http://www.silverlightshow.net/items/The-Silverlight-BlockText-Control.aspx Fri, 10 Apr 2009 10:17:05 GMT