SilverlightShow: Using the Canvas control in Silverlight 2 Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples en-us SilverlightShow.net estoychev@completit.com (Emil Stoychev) Argotic Syndication Framework, http://www.codeplex.com/Argotic http://www.rssboard.org/rss-specification RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment3490 Thank you. ( Kareem) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Sat, 24 Apr 2010 20:28:32 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment3448 <p>Hi Amir,</p> <p>if you mean margins of a child element of the Canvas you can achieve the same effect with Canvas.Left/Top.</p> ( nikolayraychev) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Tue, 20 Apr 2010 10:57:19 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment3435 <p>Hi,</p> <p>What is the difference between margins and Canvas.Left/Top?</p> <p>Thank you</p> ( Amir) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Sun, 18 Apr 2010 03:24:37 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2896 Thanks for the write. Just what I was looking for. Works with Silverlight 3. ( Kamal) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Mon, 11 Jan 2010 23:28:24 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2655 it is perfect ,thanks a lot!<input type="hidden" id="gwProxy"><!--Session data--></input><input type="hidden" id="jsProxy" onclick="jsCall();" /> <div id="refHTML"></div> ( Satish Verma) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Wed, 11 Nov 2009 09:28:30 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2654 thanks.<input type="hidden" id="gwProxy"><!--Session data--></input><input type="hidden" id="jsProxy" onclick="jsCall();" /> <div id="refHTML"></div> ( Satish Verma) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Wed, 11 Nov 2009 09:27:33 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2230 The main difference is that the inner controls in the Canvas are positioned absolutely towards its left and top sides and in the Grid they are positioned relatively. ( nikolayraychev) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Wed, 12 Aug 2009 10:04:39 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2196 Hi nicko,<div>         I have already check ur grid control........Its really nice.........I want  wat is the difference bw grid and canvas control</div> ( Shiva) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Mon, 03 Aug 2009 11:12:41 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2187 <p>Hi Shiva,</p> <p>Here you can see my article about the Grid:</p> <p><a href="http://www.silverlightshow.net/items/Using-the-Grid-control-in-Silverlight-2-Beta-1.aspx">http://www.silverlightshow.net/items/Using-the-Grid-control-in-Silverlight-2-Beta-1.aspx</a></p> <p>Infact everything is different :)</p> ( nikolayraychev) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Thu, 30 Jul 2009 10:46:20 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment2177 what is the difference between grid and canvas control ( shiva) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Wed, 29 Jul 2009 16:02:32 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment100 <p>it is perfect ,thanks a lot! it does me a big favor.</p> ( ben) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Fri, 18 Apr 2008 03:00:30 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment92 <p>Hi Joe,</p> <p>Using the <em>FrameworkElement.HorizontalAlignment</em> property in the child element will not work with the <em>Canvas</em>. This is mentioned here:</p> <p><a href="http://msdn2.microsoft.com/en-us/library/system.windows.frameworkelement.horizontalalignment(VS.95).aspx">http://msdn2.microsoft.com/en-us/library/system.windows.frameworkelement.horizontalalignment(VS.95).aspx</a></p> <p>You can use a <a href="http://www.silverlightshow.net/items/Using-the-Grid-control-in-Silverlight-2-Beta-1.aspx">Grid</a> to achieve a horizontal or a vertical alignment.</p> <p>Regarding the second question I wrote a small article about it:</p> <p><u><font color="#800080"><a href="http://www.silverlightshow.net/items/How-does-the-Canvas-control-deal-with-the-Measure-Arrange-process.aspx">http://www.silverlightshow.net/items/How-does-the-Canvas-control-deal-with-the-Measure-Arrange-process.aspx</a></font></u></p> ( nikolayraychev) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Thu, 10 Apr 2008 06:15:00 +0300 RE: Using the Canvas control in Silverlight 2 http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx#comment86 <p>How about what happens if you use a Canvas without specifying the attached properties and use HorizontalAlignment in the child element? Also, how does a canvas deal with the Measure/Arrange process when it is being layed out by a parent panel?</p> ( Joe) http://www.silverlightshow.net/items/Using-the-Canvas-control-in-Silverlight-2-Beta-1.aspx Wed, 09 Apr 2008 18:56:54 +0300