<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Canvas GetTop and SetTop</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : MarkupLabel Control : Canvas GetTop and SetTop]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 20:39:56 +0000</pubDate>
  <lastBuildDate>Thu, 12 Apr 2012 18:23:25 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19616</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Oh sorry, now I realized that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67984&amp;title=canvas-gettop-and-settop#67984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 6:23pm<br /><br />Oh sorry, now I realized that the parser does not uses the "TextBlock." and "Image." in the setter lines, it uses only the Visibility property, right? Because the entire Border is becoming invisible...]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 18:23:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67984&amp;title=canvas-gettop-and-settop#67984</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : There is a lot of flickering in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67983&amp;title=canvas-gettop-and-settop#67983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 6:05pm<br /><br /><div>There is a lot of flickering in this example, when the mouse is over:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&lt;Page&gt;</div><div><br></div><div>&lt;Page.Resources&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Style TargetType="Grid"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property="Background" Value="White"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Style.Triggers&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Trigger Property="IsMouseOver" Value="True"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Trigger.Setters&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property="TextBlock.Visibility" Value="Hidden"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property="Image.Visibility" Value="Visible"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Trigger.Setters&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Trigger&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Style.Triggers&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Style&gt;</div><div><br></div><div>&lt;/Page.Resources&gt;</div><div><br></div><div>&lt;Border Cursor='Hand'&gt;</div><div>&lt;Grid&gt;&lt;Grid.ColumnDefinitions&gt;&lt;ColumnDefinition Width='Auto'/&gt;&lt;ColumnDefinition Width='*'/&gt;&lt;ColumnDefinition Width='Auto'/&gt;&lt;/Grid.ColumnDefinitions&gt;&lt;Grid.RowDefinitions&gt;&lt;RowDefinition/&gt;&lt;RowDefinition/&gt;&lt;/Grid.RowDefinitions&gt;</div><div>&lt;Image Grid.RowSpan='2' Width='20' VerticalAlignment='Center' Source='file://AnyTinyImage.png'/&gt;</div><div>&lt;TextBlock Grid.Column='1' Grid.Row='0' Margin='2, 0, 0, 0' Foreground='#404040'&gt;%name%&lt;/TextBlock&gt;</div><div>&lt;TextBlock Grid.Column='1' Grid.Row='1' Margin='40, 0, 0, 0' Foreground='#a0a0a0'&gt;%source%&lt;/TextBlock&gt;</div><div>&lt;Image Grid.Column='2' Grid.RowSpan='2' Width='20' Source='file://AnyTinyImage.png' Visibility='Hidden'/&gt;</div><div>&lt;/Grid&gt;</div><div>&lt;/Border&gt;</div><div>&lt;/Page&gt;</div></div><div></pre></td></tr></table></div><div><br></div><div>And I suspect that the reason is the same as before.</div><div><br></div><div>The trigger set the TextBlock Visibility to Hidden, and once it is hidden, the mouse is not more over a visible child element.</div><div><br></div><div>Note also that the property "Image.Visibility" is not changed. I suspect it is not supported, only TextBlocks. Am I right? Can they be supported?</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 18:05:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67983&amp;title=canvas-gettop-and-settop#67983</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Interestingly, if we set a background...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67982&amp;title=canvas-gettop-and-settop#67982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 5:37pm<br /><br />Interestingly, if we set a background on the parent element, it does work!<div><br></div><div>Changing the parent element to this:</div><div><br></div><div><span style="font-family: 'Courier New', Courier, mono; text-align: left; white-space: pre; : rgb248, 248, 252; ">&lt;Border&nbsp;</span><font face="'Courier New', Courier, mono"><span style="white-space: pre;">Background='White' </span></font><span style=": rgb248, 248, 252; font-family: 'Courier New', Courier, mono; text-align: left; white-space: pre; ">Cursor='Hand'&gt;</span></div><div><br></div><div>makes the cursor change to a Hand whenever the mouse is over the parent element.</div><div><br></div><div>But, this information is only to help you, since I need a transparent background... :/</div><div><br></div><div>Thanks in advance for any reply!</div>]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 17:37:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67982&amp;title=canvas-gettop-and-settop#67982</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : I tested now with a Canvas and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67981&amp;title=canvas-gettop-and-settop#67981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 5:14pm<br /><br />I tested now with a Canvas and the result is the same. To test it's only to replace the parent Border with a Canvas.]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 17:14:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67981&amp;title=canvas-gettop-and-settop#67981</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Another related problem:When we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67980&amp;title=canvas-gettop-and-settop#67980</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 5:12pm<br /><br />Another related problem:<div><br></div><div>When we set a Cursor to a parent container (in this case a Border element) we expect that when the mouse is over it the cursor must be the specified one.</div><div><br></div><div>But what happens is that the cursor only changes when it is over a child element. If the mouse pointer is over an empty space inside the parent element, the cursor does not changes (and it is expected to change since the property was specified to the parent element).</div><div><br></div><div>Here is an example:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&lt;Border Cursor='Hand'&gt;</div><div>&lt;Grid&gt;&lt;Grid.ColumnDefinitions&gt;&lt;ColumnDefinition Width='Auto'/&gt;&lt;ColumnDefinition Width='*'/&gt;&lt;ColumnDefinition Width='Auto'/&gt;&lt;/Grid.ColumnDefinitions&gt;&lt;Grid.RowDefinitions&gt;&lt;RowDefinition/&gt;&lt;RowDefinition/&gt;&lt;/Grid.RowDefinitions&gt;</div><div>&lt;Image Grid.RowSpan='2' Width='20' VerticalAlignment='Center' Source='file://AnyTinyImageHere.png&nbsp;'/&gt;</div><div>&lt;TextBlock Grid.Column='1' Grid.Row='0' Margin='2, 0, 0, 0' Foreground='#404040'&gt;%name%&lt;/TextBlock&gt;</div><div>&lt;TextBlock Grid.Column='1' Grid.Row='1' Margin='40, 0, 0, 0' Foreground='#a0a0a0'&gt;%source%&lt;/TextBlock&gt;</div><div>&lt;Image Grid.Column='2' Grid.RowSpan='2' Width='20' Source='file://AnyTinyImageHere.png'/&gt;</div><div>&lt;/Grid&gt;</div><div>&lt;/Border&gt;</div></div><div><div></pre></td></tr></table></div><br ="Apple-interchange-newline"></div><div>In this case, the cursor only changes when the mouse is over any&nbsp;TextBlock&nbsp;&nbsp;or image element. If the mouse is above or bellow an image, or at the left of the second TextBlock, it remains the default.</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 17:12:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67980&amp;title=canvas-gettop-and-settop#67980</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Another discovery: when I set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67977&amp;title=canvas-gettop-and-settop#67977</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 2:56am<br /><br /><P><BR>Another discovery: when I set a MouseMove event to a Canvas element it only fires the event when the mouse is over a child element, the event is not fired when the mouse is moved over a empty space inside the canvas.</P><P>I need these features to make possible to the user to move elements inside a canvas using the mouse, like drag'n'drop.</P><DIV>Here is an example project:</DIV><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/uploads/3733/TestMarkupMouseCapture.rar" target="_blank">uploads/3733/TestMarkupMouseCapture.rar</A></DIV><DIV><BR>When run, hold the mouse left button over some colored border element and then move it vertically. When the mouse is over the border we can move (in this case) the entire label control, but if we move the mouse to the right outside the border, then we can't move it anymore. The MouseMove event is not fired in this case.</DIV><P>The XAML code used can be checked inside the MarkupLabel Caption property.</P><P>Having the Set functions working and this event working we can implement this functionality. Hope you can do it.</P><P>Thanks in advance!<BR></P>]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 02:56:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67977&amp;title=canvas-gettop-and-settop#67977</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Hi All!Did someone get to make...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67973&amp;title=canvas-gettop-and-settop#67973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 12 April 2012 at 12:47am<br /><br />Hi All!<div><br></div><div>Did someone get to make the Set functions to work?</div>]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 00:47:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67973&amp;title=canvas-gettop-and-settop#67973</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Hi Oleg!I uploaded a program to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67899&amp;title=canvas-gettop-and-settop#67899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 28 March 2012 at 8:09pm<br /><br /><div>Hi Oleg!</div><div><br></div><div>I uploaded a program to test it. I can't move the rectangle and the border inside the canvas using the Set functions.</div><div><br></div><div>Here it is:</div><div><br></div><a href="uploads/3733/TestCanvasSetFuncti&#111;ns.zip" target="_blank">uploads/3733/TestCanvasSetFunctions.zip</a><div><br></div><div>Thanks in advance!</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 28 Mar 2012 20:09:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67899&amp;title=canvas-gettop-and-settop#67899</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop :   Get methods returned void....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67894&amp;title=canvas-gettop-and-settop#67894</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 28 March 2012 at 11:07am<br /><br />Get methods returned void.&nbsp; Fixed for next relese.&nbsp; Don't see problem with Set method.&nbsp; Please write support if try fix.&nbsp; Give sample on how you use Set so I debug.]]>
   </description>
   <pubDate>Wed, 28 Mar 2012 11:07:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67894&amp;title=canvas-gettop-and-settop#67894</guid>
  </item> 
  <item>
   <title><![CDATA[Canvas GetTop and SetTop : Hi!The functions GetTop, GetLeft,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67871&amp;title=canvas-gettop-and-settop#67871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 19616<br /><strong>Posted:</strong> 27 March 2012 at 11:20pm<br /><br />Hi!<div><br></div><div>The functions GetTop, GetLeft, GetRight and GetBottom from the MarkupCanvas object class are implemented as methods (sub) instead of functions. So they don't return the values and then they are useless.</div><div><br></div><div>And it appears that the methods SetTop, SetLeft... don't work too. At least for me I can't make them to work at run-time.</div><div><br></div><div>Any tips?</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 27 Mar 2012 23:20:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19616&amp;PID=67871&amp;title=canvas-gettop-and-settop#67871</guid>
  </item> 
 </channel>
</rss>