<?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 : Markup - jumping to label</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Markup - jumping to label]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:01:28 +0000</pubDate>
  <lastBuildDate>Wed, 18 Jun 2008 09:17:40 +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=11055</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[Markup - jumping to label :  Finding element and setting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36924&amp;title=markup-jumping-to-label#36924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4251">mnowaczy</a><br /><strong>Subject:</strong> 11055<br /><strong>Posted:</strong> 18 June 2008 at 9:17am<br /><br />Finding element and setting scroll position works well, but GetClientBoundingRect is private :(<br><br>I know my element is visual and scroll start from the beginning of the page so I did like this:<br><br>if (pView &amp;&amp; pText){<br>&nbsp;&nbsp; CXTPMarkupVisual* pVisual = (CXTPMarkupVisual*)pText;<br>&nbsp;&nbsp; CRect rc = pVisual-&gt;GetBoundRect();<br>&nbsp;&nbsp; while (pVisual != 0)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc.OffsetRect(pVisual-&gt;GetVisualOffset());<br>&nbsp;&nbsp;&nbsp; &nbsp; pVisual = pVisual-&gt;GetVisualParent();<br>&nbsp;&nbsp; }<br>&nbsp;&nbsp; pView-&gt;SetScrollPos(SB_VERT, rc.top);<br>}<br><br>When I look inside this metod it's not easy to understand it without any help. Hope you'll add Markups classes to Help soon.<br>]]>
   </description>
   <pubDate>Wed, 18 Jun 2008 09:17:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36924&amp;title=markup-jumping-to-label#36924</guid>
  </item> 
  <item>
   <title><![CDATA[Markup - jumping to label : Hi,   Here some code to try  void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36915&amp;title=markup-jumping-to-label#36915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11055<br /><strong>Posted:</strong> 18 June 2008 at 6:59am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Here some code to try</DIV><DIV>&nbsp;</DIV><DIV>void CMarkupPadView::OnHyperlinkClick(CXTPMarkupObject* pSender, CXTPMarkupRoutedEventArgs* pArgs)<BR>{<BR>&nbsp;if (pSender-&gt;IsKindOf(MARKUP_TYPE(CXTPMarkupHyperlink)))<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPMarkupScrollViewer* pView = MARKUP_DYNAMICCAST(CXTPMarkupScrollViewer, m_pUIElement-&gt;FindName(L"scroll"));<BR>&nbsp;&nbsp;CXTPMarkupUIElement* pText = MARKUP_DYNAMICCAST(CXTPMarkupUIElement, m_pUIElement-&gt;FindName(L"New"));</DIV><DIV>&nbsp;&nbsp;if (pView &amp;&amp; pText)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CRect rc = pText-&gt;GetMarkupContext()-&gt;GetClientBoundingRect(pView);<BR>&nbsp;&nbsp;&nbsp;CRect rc1 = pText-&gt;GetMarkupContext()-&gt;GetClientBoundingRect(pText);</DIV><DIV>&nbsp;&nbsp;&nbsp;pView-&gt;SetScrollPos(SB_VERT, rc1.top - rc.top);<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;pArgs-&gt;SetHandled();<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>and in markup add names "scroll" for ScrollView :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&lt;ScrollViewer x:Name="scroll"&nbsp; ...</DIV>]]>
   </description>
   <pubDate>Wed, 18 Jun 2008 06:59:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36915&amp;title=markup-jumping-to-label#36915</guid>
  </item> 
  <item>
   <title><![CDATA[Markup - jumping to label : Any solution to this?  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36913&amp;title=markup-jumping-to-label#36913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4251">mnowaczy</a><br /><strong>Subject:</strong> 11055<br /><strong>Posted:</strong> 18 June 2008 at 6:08am<br /><br />Any solution to this?]]>
   </description>
   <pubDate>Wed, 18 Jun 2008 06:08:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36913&amp;title=markup-jumping-to-label#36913</guid>
  </item> 
  <item>
   <title><![CDATA[Markup - jumping to label : How to implement jumping to a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36788&amp;title=markup-jumping-to-label#36788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4251">mnowaczy</a><br /><strong>Subject:</strong> 11055<br /><strong>Posted:</strong> 16 June 2008 at 9:43am<br /><br />How to implement jumping to a label when I click on hyperlink (like in HTML)?<br><br>I imagine using Tag attribute to search through page but maybe there is en easier way to do it?<br>Any command to position on destination element (I want it to be visible at the beginning of the screen)?<br>Page have &lt;ScrollViewer&gt; of course.<br>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 09:43:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11055&amp;PID=36788&amp;title=markup-jumping-to-label#36788</guid>
  </item> 
 </channel>
</rss>